Project

General

Profile

« Previous | Next » 

Revision 11771

lib/sh/db.sh: pg_table_exists(): use `SELECT NULL` instead of `SELECT *` to avoid a long column list cluttering up the log output

View differences:

lib/sh/db.sh
360 360
pg_table_exists() # usage: [schema=...] [table=...] pg_table_exists
361 361
{
362 362
	echo_func; : "${table:?}"; mk_table_esc
363
	psql <<<"SELECT * FROM $table_esc LIMIT 0"
363
	psql <<<"SELECT NULL FROM $table_esc LIMIT 0"
364 364
}
365 365

  
366 366
fi

Also available in: Unified diff