Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite721e58

Browse files
committed
From: Darren King <aixssd!darrenk@abs.net>
Subject: [PATCHES] psql and large objects fixPsql was broken by using "Inv[0-9]+" instead of "xin[xv][0-9]+" to notshow large object files. Been this way for a long time too. Relic ofan older naming convention, perhaps?
1 parente318022 commite721e58

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎src/bin/psql/psql.c

Lines changed: 6 additions & 6 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.71 1997/06/0601:41:24 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.72 1997/06/0622:05:23 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -250,8 +250,8 @@ tableList(PsqlSettings * ps, bool deep_tablelist, char table_index_both)
250250
default:strcat(listbuf,"WHERE ( relkind = 'r' OR relkind = 'i') ");
251251
break;
252252
}
253-
strcat(listbuf," and relname !~ '^pg_'");
254-
strcat(listbuf," and relname !~ '^Inv[0-9]+'");
253+
strcat(listbuf," and relname !~ '^pg_'");
254+
strcat(listbuf," and relname !~ '^xin[vx][0-9]+'");
255255
/*
256256
* the usesysid = relowner won't work on stock 1.0 dbs, need to add in
257257
* the int4oideq function
@@ -341,7 +341,7 @@ rightsList(PsqlSettings * ps)
341341
strcat(listbuf," FROM pg_class, pg_user ");
342342
strcat(listbuf,"WHERE ( relkind = 'r' OR relkind = 'i') ");
343343
strcat(listbuf," and relname !~ '^pg_'");
344-
strcat(listbuf," and relname !~ '^Inv[0-9]+'");
344+
strcat(listbuf," and relname !~ '^xin[vx][0-9]+'");
345345
strcat(listbuf," and usesysid = relowner");
346346
strcat(listbuf," ORDER BY relname ");
347347
if (!(res=PSQLexec(ps,listbuf)))
@@ -1174,9 +1174,9 @@ HandleSlashCmds(PsqlSettings * settings,
11741174
case'd':/* \d describe tables or columns in a table */
11751175
if (strncmp(cmd,"dt",2)==0) {/* only tables */
11761176
tableList(settings,0,'t');
1177-
}elseif (strncmp(cmd,"di",2)==0) {/* onlytables */
1177+
}elseif (strncmp(cmd,"di",2)==0) {/* onlyindicies */
11781178
tableList(settings,0,'i');
1179-
}elseif (!optarg) {/* show'em both */
1179+
}elseif (!optarg) {/* show tables and indicies */
11801180
tableList(settings,0,'b');
11811181
}elseif (strcmp(optarg,"*")==0) {/* show everything */
11821182
tableList(settings,0,'b');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp