@@ -127,32 +127,27 @@ <H2>Operational Questions</H2>
127
127
< SMALL > TID</ SMALL > ?< BR >
128
128
< A href ="#4.18 "> 4.18</ A > ) What is the meaning of some of the terms
129
129
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
133
131
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
135
133
< 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
137
135
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
139
137
< 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 >
141
139
142
140
143
141
< CENTER >
144
142
< H2 > Extending PostgreSQL</ H2 >
145
143
</ CENTER >
146
144
< A href ="#5.1 "> 5.1</ A > ) I wrote a user-defined function. When I run
147
145
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
152
147
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
154
149
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
156
151
recompile not see the change?< BR >
157
152
158
153
< HR >
@@ -1137,32 +1132,13 @@ <H4><A name="4.18">4.18</A>) What is the meaning of some of the
1137
1132
< P > A list of general database terms can be found at: < A href =
1138
1133
"http://www.comptechnews.com/~reaster/dbdesign.html "> http://www.comptechnews.com/~reaster/dbdesign.html</ A > </ P >
1139
1134
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
1160
1136
I am running?< BR >
1161
1137
</ H4 >
1162
1138
1163
1139
< P > From < I > psql,</ I > type < CODE > select version();</ CODE > </ P >
1164
1140
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
1166
1142
< I > invalid large obj descriptor.</ I > Why?< BR >
1167
1143
</ H4 >
1168
1144
@@ -1179,7 +1155,7 @@ <H4><A name="4.21">4.21</A>) My large-object operations get
1179
1155
< P > If you are using a client interface like < SMALL > ODBC</ SMALL > you
1180
1156
may need to set < CODE > auto-commit off.</ CODE > </ P >
1181
1157
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
1183
1159
default to the current time?< BR >
1184
1160
</ H4 >
1185
1161
@@ -1189,7 +1165,7 @@ <H4><A name="4.22">4.22</A>) How do I create a column that will
1189
1165
</ CODE >
1190
1166
</ PRE >
1191
1167
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
1193
1169
< CODE > < SMALL > IN</ SMALL > </ CODE > so slow?< BR >
1194
1170
</ H4 >
1195
1171
@@ -1212,7 +1188,7 @@ <H4><A name="4.23">4.23</A>) Why are my subqueries using
1212
1188
</ PRE >
1213
1189
We hope to fix this limitation in a future release.
1214
1190
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 >
1216
1192
</ H4 >
1217
1193
1218
1194
< 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
1264
1240
< P > The problem could be a number of things. Try testing your
1265
1241
user-defined function in a stand-alone test program first.</ P >
1266
1242
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
1276
1244
types and functions to PostgreSQL?</ H4 >
1277
1245
1278
1246
< P > Send your extensions to the < I > pgsql-hackers</ I > mailing list,
1279
1247
and they will eventually end up in the < I > contrib/</ I >
1280
1248
subdirectory.</ P >
1281
1249
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
1283
1251
tuple?</ H4 >
1284
1252
1285
1253
< P > This requires wizardry so extreme that the authors have never
1286
1254
tried it, though in principle it can be done.</ P >
1287
1255
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
1289
1257
the recompile not see the change?</ H4 >
1290
1258
1291
1259
< P > The < I > Makefiles</ I > do not have the proper dependencies for
0 commit comments