aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-02-25 14:50:36 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-02-25 14:50:36 +0000
commit6132387d5acf3275a6ac98bf22842b54f8a55f72 (patch)
tree096c558c1f690754e862bf14a801b10d55fa34f2 /src
parent780068f812a61e73b2474f7f025b28309a2f1840 (diff)
downloadpostgresql-6132387d5acf3275a6ac98bf22842b54f8a55f72.tar.gz
postgresql-6132387d5acf3275a6ac98bf22842b54f8a55f72.zip
Make changes to psql so that it sees pg_user again instead of db_user
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/psql.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c
index 92d29f0776f..0e3fb520af5 100644
--- a/src/bin/psql/psql.c
+++ b/src/bin/psql/psql.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.134 1998/02/23 19:26:36 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.135 1998/02/25 14:50:36 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -333,7 +333,7 @@ tableList(PsqlSettings *pset, bool deep_tablelist, char info_type,
listbuf[0] = '\0';
strcat(listbuf, "SELECT usename, relname, relkind, relhasrules ");
- strcat(listbuf, "FROM pg_class, db_user ");
+ strcat(listbuf, "FROM pg_class, pg_user ");
switch (info_type)
{
case 't':
@@ -351,9 +351,9 @@ tableList(PsqlSettings *pset, bool deep_tablelist, char info_type,
break;
}
if (!system_tables)
- strcat(listbuf, " and relname !~ '^[dp][bg]_'");
+ strcat(listbuf, " and relname !~ '^pg_'");
else
- strcat(listbuf, " and relname ~ '^[dp][bg]_'");
+ strcat(listbuf, " and relname ~ '^pg_'");
strcat(listbuf, " and relname !~ '^xin[vx][0-9]+'");
/*
@@ -492,9 +492,9 @@ rightsList(PsqlSettings *pset)
listbuf[0] = '\0';
strcat(listbuf, "SELECT relname, relacl ");
- strcat(listbuf, "FROM pg_class, db_user ");
+ strcat(listbuf, "FROM pg_class, pg_user ");
strcat(listbuf, "WHERE ( relkind = 'r' OR relkind = 'i' OR relkind = 'S') ");
- strcat(listbuf, " and relname !~ '^[dp][bg]_'");
+ strcat(listbuf, " and relname !~ '^pg_'");
strcat(listbuf, " and relname !~ '^xin[vx][0-9]+'");
strcat(listbuf, " and usesysid = relowner");
strcat(listbuf, " ORDER BY relname ");