10
10
alink ="#0000ff ">
11
11
< H1 > Frequently Asked Questions (FAQ) for PostgreSQL</ H1 >
12
12
13
- < P > Last updated: Fri Oct 12 23:36:59 EDT 2007</ P >
13
+ < P > Last updated: Wed Oct 17 13:34:42 EDT 2007</ P >
14
14
15
15
< P > Current maintainer: Bruce Momjian (< A href =
16
16
"mailto:bruce@momjian.us "> bruce@momjian.us</ A > )
@@ -114,8 +114,11 @@ <H2 align="center">Operational Questions</H2>
114
114
databases?< BR >
115
115
< A href ="#item4.18 "> 4.18</ A > ) How do I return multiple rows or columns
116
116
from a function?< BR >
117
- < A href ="#item4.20 "> 4.19</ A > ) What replication solutions are available?< BR >
118
- < A href ="#item4.21 "> 4.20</ A > ) Why are my table and column names not
117
+ < A href ="#item4.19 "> 4.19</ A > ) Why do I get "relation with OID #####
118
+ does not exist" errors when accessing temporary tables in PL/PgSQL
119
+ functions?< BR >
120
+ < A href ="#item4.20 "> 4.20</ A > ) What replication solutions are available?< BR >
121
+ < A href ="#item4.21 "> 4.21</ A > ) Why are my table and column names not
119
122
recognized in my query? Why is capitalization not preserved?< BR >
120
123
121
124
@@ -1041,7 +1044,21 @@ <H3 id="item4.18">4.18) How do I return multiple rows or
1041
1044
< a href ="http://www.postgresql.org/docs/techdocs.17 ">
1042
1045
http://www.postgresql.org/docs/techdocs.17</ a > .</ P >
1043
1046
1044
- < H3 id ="item4.19 "> 4.19) What replication solutions are available?
1047
+ < H3 id ="item4.19 "> 4.19) Why do I get "relation with OID #####
1048
+ does not exist" errors when accessing temporary tables in PL/PgSQL
1049
+ functions?</ H3 >
1050
+
1051
+ < P > In PostgreSQL versions < 8 .3, PL /PgSQL caches function scripts, and
1052
+ an unfortunate side effect is that if a PL/PgSQL function accesses a
1053
+ temporary table, and that table is later dropped and recreated, and
1054
+ the function called again, the function will fail because the cached
1055
+ function contents still point to the old temporary table. The solution
1056
+ is to use < SMALL > EXECUTE</ SMALL > for temporary table access in
1057
+ PL/PgSQL. This will cause the query to be reparsed every time.</ P >
1058
+
1059
+ < P > This problem does not occur in PostgreSQL 8.3 and later.</ P >
1060
+
1061
+ < H3 id ="item4.20 "> 4.20) What replication solutions are available?
1045
1062
</ H3 >
1046
1063
1047
1064
< P > Though "replication" is a single term, there are several technologies
@@ -1063,7 +1080,7 @@ <H3 id="item4.19">4.19) What replication solutions are available?
1063
1080
< P > There are also commercial and hardware-based replication solutions
1064
1081
available supporting a variety of replication models.</ P >
1065
1082
1066
- < H3 id ="item4.20 "> 4.20 ) Why are my table and column names not
1083
+ < H3 id ="item4.21 "> 4.21 ) Why are my table and column names not
1067
1084
recognized in my query? Why is capitalization not preserved?</ H3 >
1068
1085
1069
1086
< P > The most common cause of unrecognized names is the use of
@@ -1080,5 +1097,6 @@ <H3 id="item4.20">4.20) Why are my table and column names not
1080
1097
< LI > Use only lowercase characters in identifiers</ LI >
1081
1098
< LI > Double-quote identifiers when referencing them in queries</ LI >
1082
1099
</ UL >
1100
+
1083
1101
</ BODY >
1084
1102
</ HTML>
0 commit comments