Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit df43edc

Browse files
committed
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>
1 parent ffae4eb commit df43edc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/psql.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.4 1996/07/18 05:48:40 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.5 1996/07/20 08:44:45 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -223,7 +223,7 @@ tableList (PsqlSettings *ps, bool deep_tablelist)
223223
strcat(listbuf," FROM pg_class, pg_user ");
224224
strcat(listbuf,"WHERE ( relkind = 'r' OR relkind = 'i') ");
225225
strcat(listbuf," and relname !~ '^pg_'");
226-
strcat(listbuf," and relname !~ '^Inv'");
226+
strcat(listbuf," and relname !~ '^Inv[0-9]+'");
227227
/* the usesysid = relowner won't work on stock 1.0 dbs, need to
228228
add in the int4oideq function */
229229
strcat(listbuf," and usesysid = relowner");

0 commit comments

Comments
 (0)