summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2003-05-16 13:37:11 +0000
committerTom Lane2003-05-16 13:37:11 +0000
commitaeb7888e118eee4e867a45b4bdc83d609a94a10b (patch)
treece030c1f26d1f5da978905d12a73cebba4cfc6d2
parent89724c4f834dbffdda4d37ede903e71ba840fe58 (diff)
Small changes to use the absolute path to system catalogs.
Greg Sabino Mullane
-rw-r--r--src/pl/tcl/modules/pltcl_loadmod.in2
-rw-r--r--src/pl/tcl/pltcl.c2
-rw-r--r--src/pl/tcl/test/test_setup.sql4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/pl/tcl/modules/pltcl_loadmod.in b/src/pl/tcl/modules/pltcl_loadmod.in
index 084f24967d..c26e2a229e 100644
--- a/src/pl/tcl/modules/pltcl_loadmod.in
+++ b/src/pl/tcl/modules/pltcl_loadmod.in
@@ -84,7 +84,7 @@ proc __PLTcl_loadmod_check_table {conn tabname expnames exptypes} {
set found 0
pg_select $conn "select C.relname, A.attname, A.attnum, T.typname \
- from pg_class C, pg_attribute A, pg_type T \
+ from pg_catalog.pg_class C, pg_catalog.pg_attribute A, pg_catalog.pg_type T \
where C.relname = '$tabname' \
and A.attrelid = C.oid \
and A.attnum > 0 \
diff --git a/src/pl/tcl/pltcl.c b/src/pl/tcl/pltcl.c
index a6249e231d..2f4a55bd29 100644
--- a/src/pl/tcl/pltcl.c
+++ b/src/pl/tcl/pltcl.c
@@ -309,7 +309,7 @@ pltcl_init_load_unknown(Tcl_Interp *interp)
/************************************************************
* Check if table pltcl_modules exists
************************************************************/
- spi_rc = SPI_exec("select 1 from pg_class "
+ spi_rc = SPI_exec("select 1 from pg_catalog.pg_class "
"where relname = 'pltcl_modules'", 1);
SPI_freetuptable(SPI_tuptable);
if (spi_rc != SPI_OK_SELECT)
diff --git a/src/pl/tcl/test/test_setup.sql b/src/pl/tcl/test/test_setup.sql
index 8fa9fec651..568a2b3aeb 100644
--- a/src/pl/tcl/test/test_setup.sql
+++ b/src/pl/tcl/test/test_setup.sql
@@ -319,7 +319,7 @@ create function check_primkey() returns trigger as '
# Lookup the fields type in pg_attribute
#
set n [spi_exec "select T.typname \\
- from pg_type T, pg_attribute A, pg_class C \\
+ from pg_catalog.pg_type T, pg_catalog.pg_attribute A, pg_catalog.pg_class C \\
where C.relname = ''[quote $keyrel]'' \\
and C.oid = A.attrelid \\
and A.attname = ''[quote $key]'' \\
@@ -343,7 +343,7 @@ create function check_primkey() returns trigger as '
#
# Lookup and remember the table name for later error messages
#
- spi_exec "select relname from pg_class \\
+ spi_exec "select relname from pg_catalog.pg_class \\
where oid = ''$TG_relid''::oid"
set GD($planrel) $relname
}