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

Commit6132387

Browse files
committed
Make changes to psql so that it sees pg_user again instead of db_user
1 parent780068f commit6132387

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.134 1998/02/23 19:26:36 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.135 1998/02/25 14:50:36 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -333,7 +333,7 @@ tableList(PsqlSettings *pset, bool deep_tablelist, char info_type,
333333

334334
listbuf[0]='\0';
335335
strcat(listbuf,"SELECT usename, relname, relkind, relhasrules ");
336-
strcat(listbuf,"FROM pg_class,db_user ");
336+
strcat(listbuf,"FROM pg_class,pg_user ");
337337
switch (info_type)
338338
{
339339
case't':
@@ -351,9 +351,9 @@ tableList(PsqlSettings *pset, bool deep_tablelist, char info_type,
351351
break;
352352
}
353353
if (!system_tables)
354-
strcat(listbuf," and relname !~ '^[dp][bg]_'");
354+
strcat(listbuf," and relname !~ '^pg_'");
355355
else
356-
strcat(listbuf," and relname ~ '^[dp][bg]_'");
356+
strcat(listbuf," and relname ~ '^pg_'");
357357
strcat(listbuf," and relname !~ '^xin[vx][0-9]+'");
358358

359359
/*
@@ -492,9 +492,9 @@ rightsList(PsqlSettings *pset)
492492

493493
listbuf[0]='\0';
494494
strcat(listbuf,"SELECT relname, relacl ");
495-
strcat(listbuf,"FROM pg_class,db_user ");
495+
strcat(listbuf,"FROM pg_class,pg_user ");
496496
strcat(listbuf,"WHERE ( relkind = 'r' OR relkind = 'i' OR relkind = 'S') ");
497-
strcat(listbuf," and relname !~ '^[dp][bg]_'");
497+
strcat(listbuf," and relname !~ '^pg_'");
498498
strcat(listbuf," and relname !~ '^xin[vx][0-9]+'");
499499
strcat(listbuf," and usesysid = relowner");
500500
strcat(listbuf," ORDER BY relname ");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp