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

Commit f9b232f

Browse files
committed
Small changes to use the absolute path to system catalogs.
Greg Sabino Mullane
1 parent 3d41da5 commit f9b232f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/pl/tcl/modules/pltcl_loadmod.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ proc __PLTcl_loadmod_check_table {conn tabname expnames exptypes} {
8484
set found 0
8585

8686
pg_select $conn "select C.relname, A.attname, A.attnum, T.typname \
87-
from pg_class C, pg_attribute A, pg_type T \
87+
from pg_catalog.pg_class C, pg_catalog.pg_attribute A, pg_catalog.pg_type T \
8888
where C.relname = '$tabname' \
8989
and A.attrelid = C.oid \
9090
and A.attnum > 0 \

src/pl/tcl/pltcl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* ENHANCEMENTS, OR MODIFICATIONS.
3232
*
3333
* IDENTIFICATION
34-
* $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.69 2003/02/06 17:02:11 tgl Exp $
34+
* $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.70 2003/05/16 13:37:00 tgl Exp $
3535
*
3636
**********************************************************************/
3737

@@ -309,7 +309,7 @@ pltcl_init_load_unknown(Tcl_Interp *interp)
309309
/************************************************************
310310
* Check if table pltcl_modules exists
311311
************************************************************/
312-
spi_rc = SPI_exec("select 1 from pg_class "
312+
spi_rc = SPI_exec("select 1 from pg_catalog.pg_class "
313313
"where relname = 'pltcl_modules'", 1);
314314
SPI_freetuptable(SPI_tuptable);
315315
if (spi_rc != SPI_OK_SELECT)

src/pl/tcl/test/test_setup.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ create function check_primkey() returns trigger as '
319319
# Lookup the fields type in pg_attribute
320320
#
321321
set n [spi_exec "select T.typname \\
322-
from pg_type T, pg_attribute A, pg_class C \\
322+
from pg_catalog.pg_type T, pg_catalog.pg_attribute A, pg_catalog.pg_class C \\
323323
where C.relname = ''[quote $keyrel]'' \\
324324
and C.oid = A.attrelid \\
325325
and A.attname = ''[quote $key]'' \\
@@ -343,7 +343,7 @@ create function check_primkey() returns trigger as '
343343
#
344344
# Lookup and remember the table name for later error messages
345345
#
346-
spi_exec "select relname from pg_class \\
346+
spi_exec "select relname from pg_catalog.pg_class \\
347347
where oid = ''$TG_relid''::oid"
348348
set GD($planrel) $relname
349349
}

0 commit comments

Comments
 (0)