From barwick@gmx.net Mon Jun 8 11:40:40 2026
Received: from localhost (postgresql.org [64.49.215.8])
by postgresql.org (Postfix) with ESMTP id 09AC04753A1
for
PostgreSQL development is performed by a team of Internet --- >
PostgreSQL development is performed by a team of 179,180c178,179 < below on how to join). This team is now responsible for all < development of PostgreSQL.
--- > section 1.6 on how to join). This team is now > responsible for all development of PostgreSQL. 242,243c241,242 < other interfaces and binaries to run on MS Windows platforms. In < this case, the client is running on MS Windows, and communicates --- > other interfaces and client applications to run on MS Windows platforms. > In this case, the client is running on MS Windows, and communicates 245c244 < platforms. A file win31.mak is included in the distribution --- > platforms. A file win32.mak is included in the distribution 253,256c252,256 < pgsql/doc/FAQ_MSWIN in the distribution or the MS Windows FAQ < on our web site. We have no plan to do a native port to any < Microsoft platform. --- > pgsql/doc/FAQ_MSWIN in the distribution or the MS Windows FAQ > at http://www.PostgreSQL.org/docs/faq-mswin.html. > >A native port to some Microsoft platforms is currently being worked > upon.
321c321 < "http://www.postgresql.org/users-lounge/commercial-support.html">http://www.postgresql.org/users-lounge/commercial-support.html. --- > "http://www.PostgreSQL.org/users-lounge/commercial-support.html">http://www.PostgreSQL.org/users-lounge/commercial-support.html. 342c342 < "http://www.postgresql.org/books/">http://www.postgresql.org/books/. --- > "http://www.ca.PostgreSQL.org/books/">http://www.ca.PostgreSQL.org/books/. 345c345 < "http://techdocs.postgresql.org/">http://techdocs.postgresql.org/. --- > "http://techdocs.PostgreSQL.org/">http://techdocs.PostgreSQL.org/. 405,408c405,408 <Please visit the PostgreSQL BugTool < page, which gives guidelines and directions on how to submit a < bug.
--- >Please visit the PostgreSQL BugTool page at "http://www.PostgreSQL.org/bugs/bugs.php">http://www.PostgreSQL.org/bugs/bugs.php, > which gives guidelines and directions on how to submit a > bug report.
463,464c463,464 <There is also one at http://www.phone.net/home/mwm/hotlist/.
< 547c542 <For complex cases, many use the Perl interface and CGI.pm.
--- >For complex cases, many use the Perl interface and CGI.pm or mod_perl.
553,556c548,550 <We have a nice graphical user interface called pgaccess, < which is shipped as part of the distribution. pgaccess also < has a report generator. The Web page is http://www.flex.ro/pgaccess
--- >We have a nice graphical user interface called PgAccess, which is > shipped as part of the distribution. PgAccess also has a report > generator. The Web page is http://www.pgaccess.org/.
561,562c555 <Additional interfaces are available at < http://www.postgresql.org/interfaces.html. --- >
Additional interfaces are available at > http://www.PostgreSQL.org/interfaces.html. 777c768 <
In releases where the on-disk format does not change, the --- >
In releases where the on-disk format does not change, the 805c796 < release. --- > release.
824c815 < the first few rows. Consider a query that has an ORDER --- > the first few rows. Consider using a query that has an ORDER 843,844c834,835 <We do not support ALTER TABLE DROP COLUMN, but do < this:
--- >Prior to version 7.3, ALTER TABLE DROP COLUMN is not supported. > You can do this instead:
895c886 < 24 bytes: one int field and one text filed --- > 24 bytes: one int field and one text field 960c951 < LIMIT 1 --- > LIMIT 1; 975,978c966,969 <CHAR() is best when storing strings that are < usually the same length. VARCHAR() is best when --- >
CHAR(n) is best when storing strings that are > usually the same length. VARCHAR(n) is best when 1114,1115c1105,1106 < example table in 4.15.1, that might look like < this in Perl:
--- > example table in 4.15.1, an example in a > pseudo-language would look like this: 1117,1118c1108,1109 < new_id = output of "SELECT nextval('person_id_seq')" < INSERT INTO person (id, name) VALUES (new_id, 'Blaise Pascal'); --- > new_id = execute("SELECT nextval('person_id_seq')"); > execute("INSERT INTO person (id, name) VALUES (new_id, 'Blaise Pascal')"); 1127c1118 < and your SERIAL column, respectively. --- > and your SERIAL column, respectively. 1133,1134c1124,1125 < INSERT INTO person (name) VALUES ('Blaise Pascal'); < new_id = output of "SELECT currval('person_id_seq')"; --- > execute("INSERT INTO person (name) VALUES ('Blaise Pascal')"); > new_id = execute("SELECT currval('person_id_seq')"); 1142c1133 < $sth->execute(). --- > $sth->execute(). 1147c1138 <No. Currval() returns the current value assigned by your --- >
No. currval() returns the current value assigned by your 1166c1157 < backend/access/transam.h). All user-created --- > include/access/transam.h). All user-created 1188a1180 > 1193,1194d1184 < < 1231c1221 < "http://www.comptechnews.com/~reaster/dbdesign.html">http://www.comptechnews.com/~reaster/dbdesign.html
--- > "http://hea-www.harvard.edu/MST/simul/software/docs/pkgs/pgsql/glossary/glossary.html">http://hea-www.harvard.edu/MST/simul/software/docs/pkgs/pgsql/glossary/glossary.html 1250c1240 < client. --- > client. 1255c1245 <From psql, type select version();
From psql, type SELECT version();
<SELECT * --- >--- > WHERE col IN (SELECT subcol FROM subtab); 1297,1299c1285,1286 < to: <SELECT * 1294,1295c1283 < WHERE col IN (SELECT subcol FROM subtab) <<SELECT * --- > to: >--- > WHERE EXISTS (SELECT subcol FROM subtab WHERE subcol = col); 1306c1292 < We hope to fix this limitation in a future release. --- > We hope to fix this limitation in a future release. 1365,1366c1351,1352 < "http://developer.postgresql.org/docs/postgres/plpgsql-cursors.html"> < http://developer.postgresql.org/docs/postgres/plpgsql-cursors.html, --- > "http://www.PostgreSQL.org/idocs/index.php?plpgsql-cursors.html"> > http://www.PostgreSQL.org/idocs/index.php?plpgsql-cursors.html, 1384,1385c1370,1371 < href="http://gborg.postgresql.org/genpage?replication_research"> < http://gborg.postgresql.org/genpage?replication_research lists --- > href="http://gborg.PostgreSQL.org/genpage?replication_research"> > http://gborg.PostgreSQL.org/genpage?replication_research lists 1387,1388c1373 < href="http://gborg.postgresql.org/project/pgreplication/projdisplay. < php">http://gborg.postgresql.org/project/pgreplication/projdisplay.php. --- > href="http://gborg.PostgreSQL.org/project/pgreplication/projdisplay.php">http://gborg.PostgreSQL.org/project/pgreplication/projdisplay.php. 1390c1375 <SELECT * 1301,1302c1288 < WHERE EXISTS (SELECT subcol FROM subtab WHERE subcol = col) <4.27) What encryption options are available? --- >
4.28) What encryption options are available? 1398,1399c1383,1384 < in version 7.3. In previous versions, you must enable < password_encryption in postgresql.conf.
The database server can run on Windows NT and Win2k using Cygwin, the Cygnus Unix/NT porting library. See pgsql/doc/FAQ_MSWIN in the distribution or the MS Windows FAQ ! at http://www.PostgreSQL.org/docs/faq-mswin.html.
!A native port to some Microsoft platforms is currently being worked ! upon.
The database server can run on Windows NT and Win2k using Cygwin, the Cygnus Unix/NT porting library. See pgsql/doc/FAQ_MSWIN in the distribution or the MS Windows FAQ ! at ! http://www.PostgreSQL.org/docs/faq-mswin.html.
!A native port to MS Win NT/2000/XP is currently being worked ! on.
PostgreSQL has had a first-class infrastructure since we started ! in 1994. This is all thanks to Marc Fournier, who has created and managed this infrastructure over the years.
Quality infrastructure is very important to an open-source --- 485,491 ---- PostgreSQL?
PostgreSQL has had a first-class infrastructure since we started ! in 1996. This is all thanks to Marc Fournier, who has created and managed this infrastructure over the years.
Quality infrastructure is very important to an open-source *************** *** 545,553 **** interface? A report generator? An embedded query language interface? !
We have a nice graphical user interface called PgAccess, which is ! shipped as part of the distribution. PgAccess also has a report ! generator. The Web page is http://www.pgaccess.org/.
We also include ecpg, which is an embedded SQL query language interface for C.
--- 546,554 ---- interface? A report generator? An embedded query language interface? !We have a nice graphical user interface called PgAccess which can ! also be used as a report generator. The Web page is ! http://www.pgaccess.org/.
We also include ecpg, which is an embedded SQL query language interface for C.
*************** *** 565,571 ****Additional interfaces are available at ! http://www.PostgreSQL.org/interfaces.html.
Additional interfaces are available at ! http://www.PostgreSQL.org/interfaces.html ! and ! http://gborg.PostgreSQL.org.
They are temporary files generated by the query executor. For example, if a sort needs to be done to satisfy an ORDER --- 768,775 ---- the MaxBackendId constant in include/storage/sinvaladt.h.
!They are temporary files generated by the query executor. For example, if a sort needs to be done to satisfy an ORDER *************** *** 774,783 **** -S parameter allows, then temporary files are created to hold the extra data.
!The temporary files should be deleted automatically, but might ! not if a backend crashes during a sort. If you have no backends ! running at the time, it is safe to delete the pg_tempNNN.NN ! files.
The temporary files are usually deleted automatically, but might ! remain if a backend crashes during a sort. A stop and restart of the ! postmaster will remove files from those directories.
In releases where the on-disk format does not change, the ! pg_upgrade script can be used to upgrade without a dump/restore. ! The release notes mention whether pg_upgrade is available for the ! release.
In releases where the on-disk format does not change, the ! pg_upgrade script can be used to upgrade without a dump/restore. ! The release notes mention whether pg_upgrade is available for the ! release.
Prior to version 7.3, ALTER TABLE DROP COLUMN is not supported. ! You can do this instead:
BEGIN;
LOCK TABLE old_table;
--- 833,841 ----
4.4) How do you remove a column from a
table?
! This functionality was added in release 7.3 with
! ALTER TABLE DROP COLUMN. In earlier versions,
! you can do this:
BEGIN;
LOCK TABLE old_table;
***************
*** 1023,1035 ****
SELECT *
FROM tab
! WHERE LOWER(col) = 'abc';
This will not use an standard index. However, if you create a
functional index, it will be used:
! CREATE INDEX tabindex ON tab (LOWER(col));
4.13) In a query, how do I detect if a field
--- 1026,1038 ----
SELECT *
FROM tab
! WHERE lower(col) = 'abc';
This will not use an standard index. However, if you create a
functional index, it will be used:
! CREATE INDEX tabindex ON tab (lower(col));
4.13) In a query, how do I detect if a field
***************
*** 1118,1124 ****
and your SERIAL column, respectively.
Alternatively, you could retrieve the assigned
! SERIAL value with the currval() function
after it was inserted by default, e.g.,
execute("INSERT INTO person (name) VALUES ('Blaise Pascal')");
--- 1121,1127 ----
and your SERIAL column, respectively.
Alternatively, you could retrieve the assigned
! SERIAL value with the currval() function
after it was inserted by default, e.g.,
execute("INSERT INTO person (name) VALUES ('Blaise Pascal')");
***************
*** 1135,1141 ****
4.15.3) Don't currval() and
nextval() lead to a race condition with other users?
! No. currval() returns the current value assigned by your
backend, not by all users.
4.15.4) Why aren't my sequence numbers
--- 1138,1144 ----
4.15.3) Don't currval() and
nextval() lead to a race condition with other users?
!
No. currval() returns the current value assigned by your
backend, not by all users.
4.15.4) Why aren't my sequence numbers
--ELM1034565302-16133-0_--
From pgman@candle.pha.pa.us Mon Jun 8 11:40:40 2026
Received: from localhost (postgresql.org [64.49.215.8])
by postgresql.org (Postfix) with ESMTP id E3D8E476514
for ; Sun, 13 Oct 2002 23:15:40 -0400 (EDT)
Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251])
by postgresql.org (Postfix) with ESMTP id B0A3E476504
for ; Sun, 13 Oct 2002 23:15:38 -0400 (EDT)
Received: (from pgman@localhost)
by candle.pha.pa.us (8.11.6/8.10.1) id g9E3FWV26157;
Sun, 13 Oct 2002 23:15:32 -0400 (EDT)
From: Bruce Momjian
Message-Id: <200210140315.g9E3FWV26157@candle.pha.pa.us>
Subject: Re: Minor FAQ correction suggestions
In-Reply-To: <200210130544.34553.barwick@gmx.net>
To: Ian Barwick
Date: Sun, 13 Oct 2002 23:15:32 -0400 (EDT)
Cc: pgsql-docs@postgresql.org
X-Mailer: ELM [version 2.4ME+ PL99 (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
X-Virus-Scanned: by AMaViS new-20020517
X-Archive-Number: 200210/10
X-Sequence-Number: 1504
Thanks for working on this. It really needed that freshening up.
---------------------------------------------------------------------------
Ian Barwick wrote:
>
> I'm reworking the German version of the FAQ (which is
> hopelessly outdated), in the course of which I've come across
> a few errors in the original (English) version,
> mainly minor things like spelling mistakes and broken links.
> Patch with suggested corrections attached (German version will
> follow ASAP).
>
> General alterations:
>
> Some links corrected; links to the domain "postgresql.org" now uniformly
> written as "PostgreSQL.org". Minor tidying up of formatting.
>
> Some specific notes / questions on the following sections:
>
> 1.4) What non-Unix ports are available?
>
> -> win31.mak should be win32.mak
>
> Added:
> "A native port to some Microsoft platforms is currently being worked
> upon."
> -> IIRC this is the case. Please correct if not.
>
> 1.8) What documentation is available?
> The link http://www.PostgreSQL.org/books/ is broken,
> http://www.ca.PostgreSQL.org/books/ works. (It would be more
> logical to fix the link rather than the FAQ I think, though).
>
> 3.9) What are the pg_sorttempNNN.NN files in my database directory?
>
> -> presume this should read "What are the pg_tempNNN.NN files..." ??
>
> 4.4) How do you remove a column from a table?
> -> ALTER TABLE DROP COLUMN supported as of 7.3 :-)
>
> 4.15.2) How do I get the value of a SERIAL insert?
>
> -> Perl is a very versatile language, but this:
>
> new_id = output of "SELECT nextval('person_id_seq')"
> INSERT INTO person (id, name) VALUES (new_id, 'Blaise Pascal');
>
> is most definitely not Perl ;-). I have made up a pseudo-language for the
> example.
>
> 4.16) What is an OID? What is a TID?
> -> backend/access/transam.h should be include/access/transam.h
>
> 4.17) What is the meaning of some of the terms used in PostgreSQL?
>
> -> The link http://www.comptechnews.com/~reaster/dbdesign.html is broken
> (the domain doesn't seem to exist). Suggest:
> http://hea-www.harvard.edu/MST/simul/software/docs/pkgs/pgsql/glossary/glossary.html
> as replacement.
>
> 4.25) How do I return multiple rows or columns from a function?
>
> -> Linked to current rather than developer documentation
>
>
> Regards
>
> Ian Barwick
> barwick@gmx.net
[ Attachment, skipping... ]
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From barwick@gmx.net Mon Jun 8 11:40:40 2026
Received: from localhost (postgresql.org [64.49.215.8])
by postgresql.org (Postfix) with ESMTP id 5FA6647635A
for ; Wed, 16 Oct 2002 03:19:41 -0400 (EDT)
Received: from mout00-10.webmailer.de (unknown [192.67.198.71])
by postgresql.org (Postfix) with ESMTP id EB22547626A
for ; Wed, 16 Oct 2002 03:19:38 -0400 (EDT)
Received: from iiweb2.email ([192.168.23.3] helo=post.webmailer.de)
by mout00-10.webmailer.de with esmtp (Exim 3.36 #6)
id 181ADD-0007NA-00; Mon, 14 Oct 2002 20:45:07 +0200
Received: from ianb.local (pD9517D01.dip.t-dialin.net [217.81.125.1])
by post.webmailer.de (8.9.3/8.8.7) with ESMTP id UAA14857;
Mon, 14 Oct 2002 20:41:50 +0200 (MET DST)
Content-Type: text/plain;
charset="iso-8859-1"
From: Ian Barwick
To: Bruce Momjian
Subject: Re: German FAQ progress (was: Minor FAQ correction suggestions)
Date: Mon, 14 Oct 2002 20:43:22 +0200
X-Mailer: KMail [version 1.4]
Cc: pgsql-docs@postgresql.org
References: <200210140315.g9E3FWV26157@candle.pha.pa.us>
In-Reply-To: <200210140315.g9E3FWV26157@candle.pha.pa.us>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200210142043.22424.barwick@gmx.net>
X-Virus-Scanned: by AMaViS new-20020517
X-Archive-Number: 200210/12
X-Sequence-Number: 1506
On Monday 14 October 2002 05:15, Bruce Momjian wrote:
> Thanks for working on this. It really needed that freshening up.
It's been saying "The current PostgreSQL version is 6.5" for over three
years...
I have completed a first draft, which was effectively a retranslation
of the current FAQ rather than an update of the translation. I still
have some tidying up to do, so I'll be submitting the patch nearer
the weekend.
A question: I presume the text-only version is generated from
the HTML original (I've taken care that the tags can be
stripped without damaging the format) - what tool do you use
to do this?
Regards
Ian Barwick
barwick@gmx.net
From pgman@candle.pha.pa.us Mon Jun 8 11:40:40 2026
Received: from localhost (postgresql.org [64.49.215.8])
by postgresql.org (Postfix) with ESMTP id 8912D475AE5
for ; Mon, 14 Oct 2002 18:51:31 -0400 (EDT)
Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251])
by postgresql.org (Postfix) with ESMTP id CC6F7475ADE
for ; Mon, 14 Oct 2002 18:51:29 -0400 (EDT)
Received: (from pgman@localhost)
by candle.pha.pa.us (8.11.6/8.10.1) id g9EMpPA28995;
Mon, 14 Oct 2002 18:51:25 -0400 (EDT)
From: Bruce Momjian
Message-Id: <200210142251.g9EMpPA28995@candle.pha.pa.us>
Subject: Re: German FAQ progress (was: Minor FAQ correction suggestions)
In-Reply-To: <200210142043.22424.barwick@gmx.net>
To: Ian Barwick
Date: Mon, 14 Oct 2002 18:51:25 -0400 (EDT)
Cc: pgsql-docs@postgresql.org
X-Mailer: ELM [version 2.4ME+ PL99 (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
X-Virus-Scanned: by AMaViS new-20020517
X-Archive-Number: 200210/11
X-Sequence-Number: 1505
Ian Barwick wrote:
> On Monday 14 October 2002 05:15, Bruce Momjian wrote:
> > Thanks for working on this. It really needed that freshening up.
>
> It's been saying "The current PostgreSQL version is 6.5" for over three
> years...
>
> I have completed a first draft, which was effectively a retranslation
> of the current FAQ rather than an update of the translation. I still
> have some tidying up to do, so I'll be submitting the patch nearer
> the weekend.
>
> A question: I presume the text-only version is generated from
> the HTML original (I've taken care that the tags can be
> stripped without damaging the format) - what tool do you use
> to do this?
Good question. I use lynx:
lynx -force_html -dump -hiddenlinks=ignore -nolist "$@"
Seems to work the best.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073