From eed55d951fe2a9ce1af98730438e5aa933a59802 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 26 Jul 2000 16:54:58 +0000 Subject: [PATCH] Update FAQ. --- doc/FAQ | 101 ++++++++++++------------ doc/src/FAQ/FAQ.html | 177 ++++++++++++++++++++++--------------------- 2 files changed, 140 insertions(+), 138 deletions(-) diff --git a/doc/FAQ b/doc/FAQ index 65ffdf0eae..40a61f677d 100644 --- a/doc/FAQ +++ b/doc/FAQ @@ -90,10 +90,10 @@ 4.14) In a query, how do I detect if a field is NULL? 4.15) What is the difference between the various character types? 4.16.1) How do I create a serial/auto-incrementing field? - 4.16.2) How do I get the value of a serial insert? + 4.16.2) How do I get the value of a SERIAL insert? 4.16.3) Don't currval() and nextval() lead to a race condition with - other concurrent backend processes? - 4.17) What is an oid? What is a tid? + other users? + 4.17) What is an OID? What is a TID? 4.18) What is the meaning of some of the terms used in PostgreSQL? 4.19) Why do I get the error "FATAL: palloc failure: memory exhausted?" @@ -108,13 +108,13 @@ 5.1) I wrote a user-defined function. When I run it in psql, why does it dump core? - 5.2) What does the message: NOTICE:PortalHeapMemoryFree: 0x402251d0 - not in alloc set! mean? + 5.2) What does the message "NOTICE:PortalHeapMemoryFree: 0x402251d0 + not in alloc set!" mean? 5.3) How can I contribute some nifty new types and functions to PostgreSQL? 5.4) How do I write a C function to return a tuple? - 5.5) I have changed a source file. Why does the recompile does not see - the change? + 5.5) I have changed a source file. Why does the recompile not see the + change? _________________________________________________________________ General Questions @@ -219,8 +219,8 @@ The main mailing list is: pgsql-general@PostgreSQL.org. It is available for discussion of matters pertaining to PostgreSQL. To - subscribe, send a mail with the lines in the body (not the subject - line) + subscribe, send mail with the following lines in the body (not the + subject line) subscribe end @@ -280,8 +280,8 @@ 1.9) How do I find out about known bugs or missing features? - PostgreSQL supports an extended subset of SQL-92. See our TODO for a - list of known bugs, missing features, and future plans. + PostgreSQL supports an extended subset of SQL-92. See our TODO list + for known bugs, missing features, and future plans. 1.10) How can I learn SQL? @@ -303,16 +303,16 @@ 1.12) How do I join the development team? - First, download the latest sources and read the PostgreSQL Developers + First, download the latest source and read the PostgreSQL Developers documentation on our web site, or in the distribution. Second, subscribe to the pgsql-hackers and pgsql-patches mailing lists. Third, submit high-quality patches to pgsql-patches. There are about a dozen people who have commit privileges to the PostgreSQL CVS archive. They each have submitted so many high-quality - patches that it was a pain for the existing committers to keep up, and - we had confidence that patches they committed were likely to be of - high quality. + patches that it was impossible for the existing committers to keep up, + and we had confidence that patches they committed were of high + quality. 1.13) How do I submit a bug report? @@ -333,7 +333,7 @@ some features they don't have, like user-defined types, inheritance, rules, and multi-version concurrency control to reduce lock contention. We don't have outer joins, but are - working on them for our next release. + working on them. Performance PostgreSQL runs in two modes. Normal fsync mode flushes every @@ -442,7 +442,7 @@ * Python(PyGreSQL) * TCL(libpgtcl) * C Easy API(libpgeasy) - * Embedded HTML(PHP from http://www.php.net) + * Embedded HTML (PHP from http://www.php.net) _________________________________________________________________ Administrative Questions @@ -474,9 +474,9 @@ You either do not have shared memory configured properly in your kernel or you need to enlarge the shared memory available in the kernel. The exact amount you need depends on your architecture and how - many buffers and backend processes you configure postmaster to run - with. For most systems, with default numbers of buffers and processes, - you need a minimum of ~1MB. + many buffers and backend processes you configure for the postmaster. + For most systems, with default numbers of buffers and processes, you + need a minimum of ~1MB. 3.5) When I try to start the postmaster, I get IpcSemaphoreCreate errors. Why? @@ -511,7 +511,7 @@ You should not create database users with user id 0 (root). They will be unable to access the database. This is a security precaution - because of the ability of any user to dynamically link object modules + because of the ability of users to dynamically link object modules into the database engine. 3.9) All my servers crash under concurrent table access. Why? @@ -533,9 +533,9 @@ reduces the transaction overhead. Also consider dropping and recreating indices when making large data changes. - There are several tuning things that can be done. You can disable - fsync() by starting the postmaster with a -o -F option. This will - prevent fsync()'s from flushing to disk after every transaction. + There are several tuning options. You can disable fsync() by starting + the postmaster with a -o -F option. This will prevent fsync()'s from + flushing to disk after every transaction. You can also use the postmaster -B option to increase the number of shared memory buffers used by the backend processes. If you make this @@ -548,7 +548,7 @@ value is measured in kilobytes, and the default is 512 (ie, 512K). You can also use the CLUSTER command to group data in tables to match - an index. See the cluster(l) manual page for more details. + an index. See the CLUSTER manual page for more details. 3.11) What debugging features are available? @@ -629,8 +629,8 @@ They are temporary files generated by the query executor. For example, if a sort needs to be done to satisfy an ORDER BY, and the sort - requires more space than the backend's -S parameter allows, then temp - files are created to hold the extra data. + requires more space than the backend's -S parameter allows, then + temporary files are created to hold the extra data. The temp files should be deleted automatically, but might not if a backend crashes during a sort. If you have no backends running at the @@ -695,7 +695,7 @@ Maximum number of indexes on a table? unlimited BLCKSZ. To use attributes larger than 8K, you can also use the large object interface. - Row length limit will be removed in 7.1. + The row length limit will be removed in 7.1. 4.7)How much database disk space is required to store data from a typical text file? @@ -847,13 +847,13 @@ BYTEA bytea variable-length array of bytes CREATE UNIQUE INDEX person_id_key ON person ( id ); See the create_sequence manual page for more information about - sequences. You can also use each row's oid field as a unique value. + sequences. You can also use each row's OID field as a unique value. However, if you need to dump and reload the database, you need to use - pg_dump's -o option or COPY WITH OIDS option to preserve the oids. + pg_dump's -o option or COPY WITH OIDS option to preserve the OIDs. Numbering Rows. - 4.16.2) How do I get the back the generated SERIAL value after an insert? + 4.16.2) How do I get the value of a SERIAL insert? One approach is to to retrieve the next SERIAL value from the sequence object with the nextval() function before inserting and then insert it @@ -873,35 +873,35 @@ BYTEA bytea variable-length array of bytes INSERT INTO person (name) VALUES ('Blaise Pascal'); $newID = currval('person_id_seq'); - Finally, you could use the oid returned from the INSERT statement to + Finally, you could use the OID returned from the INSERT statement to lookup the default value, though this is probably the least portable approach. In perl, using DBI with Edmund Mergl's DBD::Pg module, the oid value is made available via $sth->{pg_oid_status} after $sth->execute(). 4.16.3) Don't currval() and nextval() lead to a race condition with other - concurrent backend processes? + users? No. This is handled by the backends. - 4.17) What is an oid? What is a tid? + 4.17) What is an OID? What is a TID? OIDs are PostgreSQL's answer to unique row ids. Every row that is - created in PostgreSQL gets a unique oid. All oids generated during + created in PostgreSQL gets a unique OID. All OIDs generated during initdb are less than 16384 (from backend/access/transam.h). All - user-created oids are equal or greater that this. By default, all - these oids are unique not only within a table, or database, but unique + user-created OIDs are equal or greater that this. By default, all + these OIDs are unique not only within a table, or database, but unique within the entire PostgreSQL installation. - PostgreSQL uses oids in its internal system tables to link rows - between tables. These oids can be used to identify specific user rows - and used in joins. It is recommended you use column type oid to store - oid values. You can create an index on the oid field for faster + PostgreSQL uses OIDs in its internal system tables to link rows + between tables. These OIDs can be used to identify specific user rows + and used in joins. It is recommended you use column type OID to store + OID values. You can create an index on the OID field for faster access. Oids are assigned to all new rows from a central area that is used by - all databases. If you want to change the oid to something else, or if - you want to make a copy of the table, with the original oid's, there + all databases. If you want to change the OID to something else, or if + you want to make a copy of the table, with the original OID's, there is no reason you can't do it: CREATE TABLE new_table(old_oid oid, mycol int); SELECT old_oid, mycol INTO new FROM old; @@ -909,7 +909,7 @@ BYTEA bytea variable-length array of bytes DELETE FROM new; COPY new WITH OIDS FROM '/tmp/pgtable'; - Tids are used to identify specific physical rows with block and offset + TIDs are used to identify specific physical rows with block and offset values. Tids change after rows are modified or reloaded. They are used by index entries to point to physical rows. @@ -923,7 +923,7 @@ BYTEA bytea variable-length array of bytes * retrieve, select * replace, update * append, insert - * oid, serial value + * OID, serial value * portal, cursor * range variable, table name, table alias @@ -969,7 +969,7 @@ BYTEA bytea variable-length array of bytes Currently, we join subqueries to outer queries by sequential scanning the result of the subquery for each row of the outer query. A - workaround is to replace IN with EXISTS. For example, change: + workaround is to replace IN with EXISTS: SELECT * FROM tab WHERE col1 IN (SELECT col2 FROM TAB2) @@ -1005,8 +1005,8 @@ BYTEA bytea variable-length array of bytes The problem could be a number of things. Try testing your user-defined function in a stand alone test program first. - 5.2) What does the message: NOTICE:PortalHeapMemoryFree: 0x402251d0 not in - alloc set! mean? + 5.2) What does the message "NOTICE:PortalHeapMemoryFree: 0x402251d0 not in + alloc set!" mean? You are pfree'ing something that was not palloc'ed. Beware of mixing malloc/free and palloc/pfree. @@ -1021,9 +1021,8 @@ BYTEA bytea variable-length array of bytes This requires wizardry so extreme that the authors have never tried it, though in principle it can be done. - 5.5) I have changed a source file. Why does the recompile does not see the + 5.5) I have changed a source file. Why does the recompile not see the change? The Makefiles do not have the proper dependencies for include files. - You have to do a make clean and then another make. You have to do a - make clean and then another make. + You have to do a make clean and then another make. diff --git a/doc/src/FAQ/FAQ.html b/doc/src/FAQ/FAQ.html index 7e3f3ec24a..6444af3206 100644 --- a/doc/src/FAQ/FAQ.html +++ b/doc/src/FAQ/FAQ.html @@ -64,12 +64,12 @@ with PostgreSQL?
3.1) Why does initdb fail?
3.2) How do I install PostgreSQL somewhere other than -/usr/local/pgsql?
-3.3) When I start the postmaster, I get a +/usr/local/pgsql?
+3.3) When I start the postmaster, I get a Bad System Call or core dumped message. Why?
-3.4) When I try to start the postmaster, I get +3.4) When I try to start the postmaster, I get IpcMemoryCreate errors. Why?
-3.5) When I try to start the postmaster, I get +3.5) When I try to start the postmaster, I get IpcSemaphoreCreate errors. Why?
3.6) How do I prevent other hosts from accessing my PostgreSQL database?
@@ -121,38 +121,40 @@ is NULL?
4.15) What is the difference between the various character types?
4.16.1) How do I create a serial/auto-incrementing field?
-4.16.2) How do I get the value of a serial insert?
-4.16.3) Don't currval() and nextval() lead to a -race condition with other concurrent backend processes?
+4.16.2) How do I get the value of a +SERIAL insert?
+4.16.3) Don't currval() and nextval() lead to a +race condition with other users?
-4.17) What is an oid? What is a tid?
+4.17) What is an OID? What is a +TID?
4.18) What is the meaning of some of the terms used in PostgreSQL?
-4.19) Why do I get the error "FATAL: palloc -failure: memory exhausted?"
+4.19) Why do I get the error "FATAL: palloc +failure: memory exhausted?"
4.20) How do I tell what PostgreSQL version I am running?
4.21) My large-object operations get invalid large obj descriptor. Why?
4.22) How do I create a column that will default to the current time?
-4.23) Why are my subqueries using IN so -slow?
+4.23) Why are my subqueries using +IN so slow?
4.24) How do I do an outer join?

Extending PostgreSQL

5.1) I wrote a user-defined function. When I run it in psql, why does it dump core?
-5.2) What does the message: -NOTICE:PortalHeapMemoryFree: 0x402251d0 not in alloc set! mean?
+5.2) What does the message +"NOTICE:PortalHeapMemoryFree: 0x402251d0 not in alloc set!" mean?
5.3) How can I contribute some nifty new types and functions to PostgreSQL?
5.4) How do I write a C function to return a tuple?
5.5) I have changed a source file. Why does the -recompile does not see the change?
+recompile not see the change?

@@ -276,7 +278,7 @@ California, Berkeley. It is maintained through volunteer effort.

The main mailing list is: pgsql-general@PostgreSQL.org. It is available for discussion of matters pertaining to PostgreSQL. -To subscribe, send a mail with the lines in the body (not +To subscribe, send mail with the following lines in the body (not the subject line)

@@ -326,7 +328,7 @@ via the PostgreSQL WWW home page at:
 http://www.PostgreSQL.org
 

-There is also an IRC channel on EFNet, channel #PostgreSQL. +There is also an IRC channel on EFNet, channel #PostgreSQL. I use the unix command irc -c '#PostgreSQL' "$USER" irc.phoenix.net.

@@ -344,7 +346,7 @@ We plan to have major releases every four months.

1.8) What documentation is available?

Several manuals, manual pages, and some small test examples are -included in the distribution. See the /doc directory. You can also +included in the distribution. See the /doc directory. You can also browse the manual on-line at http://www.PostgreSQL.org/docs/postgres. @@ -364,7 +366,7 @@ Our web site contains even more documentation.

PostgreSQL supports an extended subset of SQL-92. See our -TODO for a list of known bugs, missing features, and future plans.

+TODO list for known bugs, missing features, and future plans.

1.10) How can I learn SQL?

@@ -394,16 +396,16 @@ Yes, we easily handle dates past the year 2000AD, and before 2000BC.

1.12) How do I join the development team?

-First, download the latest sources and read the PostgreSQL Developers +First, download the latest source and read the PostgreSQL Developers documentation on our web site, or in the distribution. -Second, subscribe to the pgsql-hackers and pgsql-patches mailing lists. +Second, subscribe to the pgsql-hackers and pgsql-patches mailing lists. Third, submit high-quality patches to pgsql-patches.

There are about a dozen people who have commit privileges to the PostgreSQL CVS archive. They each have submitted so many -high-quality patches that it was a pain for the existing +high-quality patches that it was impossible for the existing committers to keep up, and we had confidence that patches they -committed were likely to be of high quality. +committed were of high quality.

1.13) How do I submit a bug report?

@@ -430,7 +432,7 @@ transactions, subselects, triggers, views, foreign key referential integrity, and sophisticated locking. We have some features they don't have, like user-defined types, inheritance, rules, and multi-version concurrency control to reduce lock contention. We don't have outer -joins, but are working on them for our next release.

+joins, but are working on them.

Performance
@@ -560,7 +562,7 @@ We have:
  • Python(PyGreSQL)
  • TCL(libpgtcl)
  • C Easy API(libpgeasy) -
  • Embedded HTML(PHP from http://www.php.net) +
  • Embedded HTML (PHP from http://www.php.net)


    @@ -580,14 +582,14 @@ your path

    3.2) How do I install PostgreSQL somewhere -other than /usr/local/pgsql?

    +other than /usr/local/pgsql?

    -The simplest way is to specify the --prefix option when running configure. -If you forgot to do that, you can edit Makefile.global and change POSTGRESDIR -accordingly, or create a Makefile.custom and define POSTGRESDIR there.

    +The simplest way is to specify the --prefix option when running configure. +If you forgot to do that, you can edit Makefile.global and change POSTGRESDIR +accordingly, or create a Makefile.custom and define POSTGRESDIR there.

    -

    3.3) When I start the postmaster, I get a Bad +

    3.3) When I start the postmaster, I get a Bad System Call or core dumped message. Why?

    It could be a variety of problems, but first check to see that you @@ -595,23 +597,23 @@ have System V extensions installed in your kernel. PostgreSQL requires kernel support for shared memory and semaphores.

    -

    3.4) When I try to start the postmaster, I +

    3.4) When I try to start the postmaster, I get IpcMemoryCreate errors. Why?

    You either do not have shared memory configured properly in your kernel or you need to enlarge the shared memory available in the kernel. The exact amount you need depends on your architecture and how many buffers -and backend processes you configure postmaster to run with. +and backend processes you configure for the postmaster. For most systems, with default numbers of buffers and processes, you need a minimum of ~1MB.

    -

    3.5) When I try to start the postmaster, I +

    3.5) When I try to start the postmaster, I get IpcSemaphoreCreate errors. Why?

    If the error message is IpcSemaphoreCreate: semget failed (No space left on device) then your kernel is not configured with enough semaphores. Postgres needs one semaphore per potential backend process. -A temporary solution is to start the postmaster with a smaller limit on +A temporary solution is to start the postmaster with a smaller limit on the number of backend processes. Use -N with a parameter less than the default of 32. A more permanent solution is to increase your kernel's SEMMNS and SEMMNI parameters.

    @@ -635,7 +637,7 @@ another machine?

    The default configuration allows only unix domain socket connections from the local machine. To enable TCP/IP connections, make sure the -postmaster has been started with the -i option, and add an +postmaster has been started with the -i option, and add an appropriate host entry to the file pgsql/data/pg_hba.conf. @@ -643,8 +645,8 @@ appropriate host entry to the file user?

    You should not create database users with user id 0 (root). They will be -unable to access the database. This is a security precaution because -of the ability of any user to dynamically link object modules into the +unable to access the database. This is a security precaution because +of the ability of users to dynamically link object modules into the database engine.

    @@ -671,22 +673,23 @@ transaction block. This reduces the transaction overhead. Also consider dropping and recreating indices when making large data changes.

    -There are several tuning things that can be done. You can disable -fsync() by starting the postmaster with a -o -F option. This will -prevent fsync()'s from flushing to disk after every transaction.

    +There are several tuning options. You can disable +fsync() by starting the postmaster with a -o -F +option. This will prevent fsync()'s from flushing to disk after +every transaction.

    -You can also use the postmaster -B option to increase the number of +You can also use the postmaster -B option to increase the number of shared memory buffers used by the backend processes. If you make this -parameter too high, the postmaster may not start because you've exceeded +parameter too high, the postmaster may not start because you've exceeded your kernel's limit on shared memory space. Each buffer is 8K and the default is 64 buffers.

    -You can also use the backend -S option to increase the maximum amount -of memory used by the backend process for temporary sorts. The -S value +You can also use the backend -S option to increase the maximum amount +of memory used by the backend process for temporary sorts. The -S value is measured in kilobytes, and the default is 512 (ie, 512K).

    You can also use the CLUSTER command to group data in tables to -match an index. See the cluster(l) manual page for more details.

    +match an index. See the CLUSTER manual page for more details.

    3.11) What debugging features are available?

    @@ -694,7 +697,7 @@ match an index. See the cluster(l) manual page for more details.

    PostgreSQL has several features that report status information that can be valuable for debugging purposes.

    -First, by running configure with the --enable-cassert option, many +First, by running configure with the --enable-cassert option, many assert()'s monitor the progress of the backend and halt the program when something unexpected occurs.

    @@ -708,7 +711,7 @@ standard output and error to a log file, like: This will put a server.log file in the top-level PostgreSQL directory. This file contains useful information about problems or errors -encountered by the server. Postmaster has a -d option that allows even +encountered by the server. Postmaster has a -d option that allows even more detailed information to be reported. The -d option takes a number that specifies the debug level. Be warned that high debug level values generate large log files.

    @@ -743,19 +746,19 @@ in the client's current directory.

    3.12) I get 'Sorry, too many clients' when trying to connect. Why?

    -You need to increase the postmaster's limit on how many concurrent backend +You need to increase the postmaster's limit on how many concurrent backend processes it can start.

    In PostgreSQL 6.5 and up, the default limit is 32 processes. You can -increase it by restarting the postmaster with a suitable -N +increase it by restarting the postmaster with a suitable -N value. With the default configuration you can set -N as large as 1024. If you need more, increase MAXBACKENDS in include/config.h and rebuild. You can set the default value of --N at configuration time, if you like, using configure's +-N at configuration time, if you like, using configure's --with-maxbackends switch.

    Note that if you make -N larger than 32, you must also increase --B beyond its default of 64; -B must be at least twice -N, and +-B beyond its default of 64; -B must be at least twice -N, and probably should be more than that for best performance. For large numbers of backend processes, you are also likely to find that you need to increase various Unix kernel configuration parameters. Things to @@ -778,7 +781,7 @@ database directory?

    They are temporary files generated by the query executor. For example, if a sort needs to be done to satisfy an ORDER BY, and the sort requires more space than the backend's -S parameter allows, -then temp files are created to hold the extra data.

    +then temporary files are created to hold the extra data.

    The temp files should be deleted automatically, but might not if a backend crashes during a sort. If you have no backends running at the time, @@ -793,7 +796,7 @@ it is safe to delete the pg_tempNNN.NN files.

    commas, decimal points, and date formats.

    Check your locale configuration. PostgreSQL uses the locale setting of -the user that ran the postmaster process. There are postgres and psql +the user that ran the postmaster process. There are postgres and psql SET commands to control the date format. Set those accordingly for your operating environment.

    @@ -862,7 +865,7 @@ To change the maximum row size, edit include/config.h and change BLCKSZ. To use attributes larger than 8K, you can also use the large object interface.

    -Row length limit will be removed in 7.1.

    +The row length limit will be removed in 7.1.

    4.7)How much database disk space is required to @@ -1037,13 +1040,14 @@ is automatically translated into this:

  • See the create_sequence manual page for more information about sequences. -You can also use each row's oid field as a unique value. However, if +You can also use each row's OID field as a unique value. However, if you need to dump and reload the database, you need to use pg_dump's -o -option or COPY WITH OIDS option to preserve the oids.

    +option or COPY WITH OIDS option to preserve the OIDs.

    Numbering Rows. -

    4.16.2) How do I get the back the generated SERIAL value after an insert?

    +

    4.16.2) How do I get the value of a +SERIAL insert?

    One approach is to to retrieve the next SERIAL value from the sequence object with the nextval() function before inserting and then insert it explicitly. Using the example table in 4.16.1, that might look like this:

     	$newSerialID = nextval('person_id_seq');
    @@ -1056,35 +1060,37 @@ Alternatively, you could retrieve the just-assigned SERIAL value with the cur
     	INSERT INTO person (name) VALUES ('Blaise Pascal');
     	$newID = currval('person_id_seq');
     
    -Finally, you could use the oid returned from the +Finally, you could use the OID returned from the INSERT statement to lookup the default value, though this is probably the least portable approach. In perl, using DBI with Edmund Mergl's DBD::Pg module, the oid value is made available via $sth->{pg_oid_status} after $sth->execute(). -

    4.16.3) Don't currval() and nextval() lead to a race condition with other -concurrent backend processes?

    +

    4.16.3) Don't currval() and nextval() lead to +a race condition with other users?

    No. This is handled by the backends. -

    4.17) What is an oid? What is a tid?

    +

    4.17) What is an OID? What is a +TID?

    OIDs are PostgreSQL's answer to unique row ids. Every row that is -created in PostgreSQL gets a unique oid. All oids generated during +created in PostgreSQL gets a unique OID. All OIDs generated during initdb are less than 16384 (from backend/access/transam.h). All -user-created oids are equal or greater that this. By default, all these -oids are unique not only within a table, or database, but unique within +user-created OIDs are equal or greater that this. By default, all these +OIDs are unique not only within a table, or database, but unique within the entire PostgreSQL installation.

    -PostgreSQL uses oids in its internal system tables to link rows between -tables. These oids can be used to identify specific user rows and used -in joins. It is recommended you use column type oid to store oid -values. You can create an index on the oid field for faster access.

    +PostgreSQL uses OIDs in its internal system tables to link rows between +tables. These OIDs can be used to identify specific user rows and used +in joins. It is recommended you use column type OID to +store OID +values. You can create an index on the OID field for faster access.

    -Oids are assigned to all new rows from a central area that is used by -all databases. If you want to change the oid to something else, or if -you want to make a copy of the table, with the original oid's, there is +Oids are assigned to all new rows from a central area that is used by +all databases. If you want to change the OID to something else, or if +you want to make a copy of the table, with the original OID's, there is no reason you can't do it:

    @@ -1099,7 +1105,7 @@ no reason you can't do it:
     -->
     

    -Tids are used to identify specific physical rows with block and offset +TIDs are used to identify specific physical rows with block and offset values. Tids change after rows are modified or reloaded. They are used by index entries to point to physical rows.

    @@ -1117,17 +1123,17 @@ common usage. Here are some:

  • retrieve, select
  • replace, update
  • append, insert -
  • oid, serial value +
  • OID, serial value
  • portal, cursor
  • range variable, table name, table alias

    -

    4.19) Why do I get the error "FATAL: palloc -failure: memory exhausted?"

    +

    4.19) Why do I get the error "FATAL: palloc +failure: memory exhausted?"

    It is possible you have run out of virtual memory on your system, or your kernel has a low limit for certain resources. Try this before -starting the postmaster: +starting the postmaster:

     	ulimit -d 65536
    @@ -1169,12 +1175,11 @@ Use now():
     	CREATE TABLE test (x int, modtime timestamp default now() );
     

    -

    4.23) Why are my subqueries using IN so -slow?

    +

    4.23) Why are my subqueries using +IN so slow?

    Currently, we join subqueries to outer queries by sequential scanning the result of the subquery for each row of the outer query. A workaround -is to replace IN with EXISTS. For example, -change: +is to replace IN with EXISTS:

     	SELECT *
     	FROM tab
    @@ -1215,8 +1220,8 @@ I run it in psql, why does it dump core?

    The problem could be a number of things. Try testing your user-defined function in a stand alone test program first. -

    5.2) What does the message: -NOTICE:PortalHeapMemoryFree: 0x402251d0 not in alloc set! mean?

    +

    5.2) What does the message +"NOTICE:PortalHeapMemoryFree: 0x402251d0 not in alloc set!" mean?

    You are pfree'ing something that was not palloc'ed. Beware of mixing malloc/free and palloc/pfree. @@ -1237,12 +1242,10 @@ This requires wizardry so extreme that the authors have never tried it, though in principle it can be done.

    5.5) I have changed a source file. Why does the -recompile does not see the change?

    +recompile not see the change?

    -The Makefiles do not have the proper dependencies for include files. You -have to do a make clean and then another make. - You -have to do a make clean and then another make.

    +The Makefiles do not have the proper dependencies for include files. You +have to do a make clean and then another make.