mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Fix for:
> > We did some testing and found that if we name the table 'Inv' with > anything appended to it, the table does not appear in the '\d' table list. > It appears to be the capital I as a table named 'invItemsL' is created > and displayed properly. > - submitted by: Jason Wright <jason@shiloh.vnet.net>
This commit is contained in:
parent
ffae4ebde9
commit
df43edcf45
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.4 1996/07/18 05:48:40 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.5 1996/07/20 08:44:45 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -223,7 +223,7 @@ tableList (PsqlSettings *ps, bool deep_tablelist)
|
|||||||
strcat(listbuf," FROM pg_class, pg_user ");
|
strcat(listbuf," FROM pg_class, pg_user ");
|
||||||
strcat(listbuf,"WHERE ( relkind = 'r' OR relkind = 'i') ");
|
strcat(listbuf,"WHERE ( relkind = 'r' OR relkind = 'i') ");
|
||||||
strcat(listbuf," and relname !~ '^pg_'");
|
strcat(listbuf," and relname !~ '^pg_'");
|
||||||
strcat(listbuf," and relname !~ '^Inv'");
|
strcat(listbuf," and relname !~ '^Inv[0-9]+'");
|
||||||
/* the usesysid = relowner won't work on stock 1.0 dbs, need to
|
/* the usesysid = relowner won't work on stock 1.0 dbs, need to
|
||||||
add in the int4oideq function */
|
add in the int4oideq function */
|
||||||
strcat(listbuf," and usesysid = relowner");
|
strcat(listbuf," and usesysid = relowner");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user