@@ -127,32 +127,27 @@ <H2>Operational Questions</H2>
127127< SMALL > TID</ SMALL > ?< BR >
128128< A href ="#4.18 "> 4.18</ A > ) What is the meaning of some of the terms
129129 used in PostgreSQL?< BR >
130- < A href ="#4.19 "> 4.19</ A > ) Why do I get the error< I > "FATAL: palloc
131- failure: memory exhausted?"</ I > < BR >
132- < A href ="#4.20 "> 4.20</ A > ) How do I tell what PostgreSQL version I
130+ < A href ="#4.19 "> 4.19</ A > ) How do I tell what PostgreSQL version I
133131 am running?< BR >
134- < A href ="#4.21 "> 4.21 </ A > ) My large-object operations get
132+ < A href ="#4.20 "> 4.20 </ A > ) My large-object operations get
135133< I > invalid large obj descriptor.</ I > Why?< BR >
136- < A href ="#4.22 "> 4.22 </ A > ) How do I create a column that will
134+ < A href ="#4.21 "> 4.21 </ A > ) How do I create a column that will
137135 default to the current time?< BR >
138- < A href ="#4.23 "> 4.23 </ A > ) Why are my subqueries using
136+ < A href ="#4.22 "> 4.22 </ A > ) Why are my subqueries using
139137< CODE > < SMALL > IN</ SMALL > </ CODE > so slow?< BR >
140- < A href ="#4.24 "> 4.24 </ A > ) How do I perform an outer join?< BR >
138+ < A href ="#4.23 "> 4.23 </ A > ) How do I perform an outer join?< BR >
141139
142140
143141< CENTER >
144142< H2 > Extending PostgreSQL</ H2 >
145143</ CENTER >
146144< A href ="#5.1 "> 5.1</ A > ) I wrote a user-defined function. When I run
147145 it in< I > psql,</ I > why does it dump core?< BR >
148- < A href ="#5.2 "> 5.2</ A > ) What does the message
149- < I > "NOTICE:PortalHeapMemoryFree: 0x402251d0 not in alloc set!"</ I >
150- mean?< BR >
151- < A href ="#5.3 "> 5.3</ A > ) How can I contribute some nifty new types
146+ < A href ="#5.2 "> 5.2</ A > ) How can I contribute some nifty new types
152147 and functions to PostgreSQL?< BR >
153- < A href ="#5.4 "> 5.4 </ A > ) How do I write a C function to return a
148+ < A href ="#5.3 "> 5.3 </ A > ) How do I write a C function to return a
154149 tuple?< BR >
155- < A href ="#5.5 "> 5.5 </ A > ) I have changed a source file. Why does the
150+ < A href ="#5.4 "> 5.4 </ A > ) I have changed a source file. Why does the
156151 recompile not see the change?< BR >
157152
158153< HR >
@@ -1137,32 +1132,13 @@ <H4><A name="4.18">4.18</A>) What is the meaning of some of the
11371132< P > A list of general database terms can be found at:< A href =
11381133 "http://www.comptechnews.com/~reaster/dbdesign.html "> http://www.comptechnews.com/~reaster/dbdesign.html</ A > </ P >
11391134
1140- < H4 > < A name ="4.19 "> 4.19</ A > ) Why do I get the error< I > "FATAL:
1141- palloc failure: memory exhausted?"</ I > < BR >
1142- </ H4 >
1143-
1144- < P > It is possible you have run out of virtual memory on your
1145- system, or your kernel has a low limit for certain resources. Try
1146- this before starting the< I > postmaster:</ I > </ P >
1147- < PRE >
1148- ulimit -d 65536
1149- limit datasize 64m
1150- </ PRE >
1151- Depending on your shell, only one of these may succeed, but it will
1152- set your process data segment limit much higher and perhaps allow
1153- the query to complete. This command applies to the current process,
1154- and all subprocesses created after the command is run. If you are
1155- having a problem with the< SMALL > SQL</ SMALL > client because the
1156- backend is returning too much data, try it before starting the
1157- client.
1158-
1159- < H4 > < A name ="4.20 "> 4.20</ A > ) How do I tell what PostgreSQL version
1135+ < H4 > < A name ="4.19 "> 4.19</ A > ) How do I tell what PostgreSQL version
11601136 I am running?< BR >
11611137</ H4 >
11621138
11631139< P > From< I > psql,</ I > type< CODE > select version();</ CODE > </ P >
11641140
1165- < H4 > < A name ="4.21 "> 4.21 </ A > ) My large-object operations get
1141+ < H4 > < A name ="4.20 "> 4.20 </ A > ) My large-object operations get
11661142< I > invalid large obj descriptor.</ I > Why?< BR >
11671143</ H4 >
11681144
@@ -1179,7 +1155,7 @@ <H4><A name="4.21">4.21</A>) My large-object operations get
11791155< P > If you are using a client interface like< SMALL > ODBC</ SMALL > you
11801156 may need to set< CODE > auto-commit off.</ CODE > </ P >
11811157
1182- < H4 > < A name ="4.22 "> 4.22 </ A > ) How do I create a column that will
1158+ < H4 > < A name ="4.21 "> 4.21 </ A > ) How do I create a column that will
11831159 default to the current time?< BR >
11841160</ H4 >
11851161
@@ -1189,7 +1165,7 @@ <H4><A name="4.22">4.22</A>) How do I create a column that will
11891165</ CODE >
11901166</ PRE >
11911167
1192- < H4 > < A name ="4.23 "> 4.23 </ A > ) Why are my subqueries using
1168+ < H4 > < A name ="4.22 "> 4.22 </ A > ) Why are my subqueries using
11931169< CODE > < SMALL > IN</ SMALL > </ CODE > so slow?< BR >
11941170</ H4 >
11951171
@@ -1212,7 +1188,7 @@ <H4><A name="4.23">4.23</A>) Why are my subqueries using
12121188</ PRE >
12131189 We hope to fix this limitation in a future release.
12141190
1215- < H4 > < A name ="4.24 "> 4.24 </ A > ) How do I perform an outer join?< BR >
1191+ < H4 > < A name ="4.23 "> 4.23 </ A > ) How do I perform an outer join?< BR >
12161192</ H4 >
12171193
12181194< P > PostgreSQL 7.1 and later supports outer joins using the SQL
@@ -1264,28 +1240,20 @@ <H4><A name="5.1">5.1</A>) I wrote a user-defined function. When I
12641240< P > The problem could be a number of things. Try testing your
12651241 user-defined function in a stand-alone test program first.</ P >
12661242
1267- < H4 > < A name ="5.2 "> 5.2</ A > ) What does the message
1268- < I > "NOTICE:PortalHeapMemoryFree: 0x402251d0 not in alloc set!"</ I >
1269- mean?</ H4 >
1270-
1271- < P > You are< I > pfree'</ I > ing something that was not
1272- < I > palloc'</ I > ed. Beware of mixing< I > malloc/free</ I > and
1273- < I > palloc/pfree.</ I > </ P >
1274-
1275- < H4 > < A name ="5.3 "> 5.3</ A > ) How can I contribute some nifty new
1243+ < H4 > < A name ="5.2 "> 5.2</ A > ) How can I contribute some nifty new
12761244 types and functions to PostgreSQL?</ H4 >
12771245
12781246< P > Send your extensions to the< I > pgsql-hackers</ I > mailing list,
12791247 and they will eventually end up in the< I > contrib/</ I >
12801248 subdirectory.</ P >
12811249
1282- < H4 > < A name ="5.4 "> 5.4 </ A > ) How do I write a C function to return a
1250+ < H4 > < A name ="5.3 "> 5.3 </ A > ) How do I write a C function to return a
12831251 tuple?</ H4 >
12841252
12851253< P > This requires wizardry so extreme that the authors have never
12861254 tried it, though in principle it can be done.</ P >
12871255
1288- < H4 > < A name ="5.5 "> 5.5 </ A > ) I have changed a source file. Why does
1256+ < H4 > < A name ="5.4 "> 5.4 </ A > ) I have changed a source file. Why does
12891257 the recompile not see the change?</ H4 >
12901258
12911259< P > The< I > Makefiles</ I > do not have the proper dependencies for