From demolish@cwgsy.net Thu Sep 25 21:50:06 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 00AF2D1B4FF for ; Thu, 25 Sep 2003 21:50:06 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 67916-07 for ; Thu, 25 Sep 2003 18:49:57 -0300 (ADT) Received: from CISX-Linux4.cisx.com (unknown [213.133.202.58]) by svr1.postgresql.org (Postfix) with ESMTP id 6EE08D1B4F5 for ; Thu, 25 Sep 2003 18:49:54 -0300 (ADT) Received: from DEMOLITION ([192.168.100.22]) by CISX-Linux4.cisx.com (8.12.8/8.12.8) with SMTP id h8PLmoOF016783 for ; Thu, 25 Sep 2003 22:48:50 +0100 Message-ID: <00e301c383af$02efa0c0$1664a8c0@DEMOLITION> From: "Donald Fraser" To: "[ADMIN]" Subject: Case Insensitive Test Date: Thu, 25 Sep 2003 22:50:18 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00E0_01C383B7.645239B0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4927.1200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.0 tagged_above=0.0 required=5.0 tests=HTML_50_60, RCVD_IN_OSIRUSOFT_COM X-Spam-Level: * X-Archive-Number: 200309/419 X-Sequence-Number: 10507 This is a multi-part message in MIME format. ------=_NextPart_000_00E0_01C383B7.645239B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable The Case Insensitive Text data type for PostgreSQL is now part of the GBorg= projects. http://gborg.postgresql.org/project/citext/projdisplay.php Regards Donald Fraser ------=_NextPart_000_00E0_01C383B7.645239B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
The Case Insensitive Text data type for Po= stgreSQL=20 is now part of the GBorg projects.
 
http://= gborg.postgresql.org/project/citext/projdisplay.php
 
Regards
Donald Fraser
------=_NextPart_000_00E0_01C383B7.645239B0-- From masm@fciencias.unam.mx Thu Sep 25 22:06:54 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0192DD1B4FF for ; Thu, 25 Sep 2003 22:06:54 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 72628-01 for ; Thu, 25 Sep 2003 19:06:24 -0300 (ADT) Received: from conexa.fciencias.unam.mx (conexa.fciencias.unam.mx [132.248.109.170]) by svr1.postgresql.org (Postfix) with ESMTP id BF733D1B4E9 for ; Thu, 25 Sep 2003 19:06:19 -0300 (ADT) Received: (from masm@localhost) by conexa.fciencias.unam.mx (8.11.6/8.11.6) id h8PMCoF07290; Thu, 25 Sep 2003 17:12:50 -0500 X-Authentication-Warning: conexa.fciencias.unam.mx: masm set sender to masm@fciencias.unam.mx using -f To: "Donald Fraser" Cc: "[ADMIN]" Subject: Re: Case Insensitive Test References: <00e301c383af$02efa0c0$1664a8c0@DEMOLITION> In-Reply-To: <00e301c383af$02efa0c0$1664a8c0@DEMOLITION> From: Manuel Sugawara User-Name: Manuel Sugawara User-Mail-Address: masm@fciencias.unam.mx Date: 25 Sep 2003 17:12:50 -0500 Message-ID: Lines: 14 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/420 X-Sequence-Number: 10508 "Donald Fraser" writes: > The Case Insensitive Text data type for PostgreSQL is now part of > the GBorg projects. > > http://gborg.postgresql.org/project/citext/projdisplay.php Nice work, just two comments (1) the C++ comment style (//) is not portable for C programs and should be changed and (2) the standard way to distribute this kind of stuff is a tarball, zip is more from the windows world. Regargs, Manuel. From demolish@cwgsy.net Thu Sep 25 23:05:03 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id B8881D1B502 for ; Thu, 25 Sep 2003 23:05:03 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 78253-06 for ; Thu, 25 Sep 2003 20:04:55 -0300 (ADT) Received: from CISX-Linux4.cisx.com (unknown [213.133.202.58]) by svr1.postgresql.org (Postfix) with ESMTP id 05D06D1B52A for ; Thu, 25 Sep 2003 20:04:47 -0300 (ADT) Received: from DEMOLITION ([192.168.100.22]) by CISX-Linux4.cisx.com (8.12.8/8.12.8) with SMTP id h8PN3hOF016838 for ; Fri, 26 Sep 2003 00:03:44 +0100 Message-ID: <012601c383b9$795f8f40$1664a8c0@DEMOLITION> From: "Donald Fraser" To: "[ADMIN]" Subject: Fw: Case Insensitive Test Date: Fri, 26 Sep 2003 00:05:11 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4927.1200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/421 X-Sequence-Number: 10509 ----- Original Message ----- From: "Manuel Sugawara" To: "Donald Fraser" Cc: "[ADMIN]" Sent: Thursday, September 25, 2003 11:12 PM Subject: Re: [ADMIN] Case Insensitive Test > "Donald Fraser" writes: > > > The Case Insensitive Text data type for PostgreSQL is now part of > > the GBorg projects. > > > > http://gborg.postgresql.org/project/citext/projdisplay.php > > Nice work, just two comments (1) the C++ comment style (//) is not > portable for C programs and should be changed and (2) the standard way Fair comment but since it has to be compiled against a valid PosgtreSQL distribution, which all require GNU compilers, I don't see what the problem is. All the C GNU compilers that I've ever used support C++ style comments which in my opinion are much nicer to use. > to distribute this kind of stuff is a tarball, zip is more from the > windows world. Ok its I added the tar.gz file to the distribution, which you'll note it twice the size of the zip file. May be I don't know how to use tar properly but that's why I used the zip format - it always seems to come out smaller by at least a factor of 2. Regards Donald From masm@fciencias.unam.mx Thu Sep 25 23:22:37 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id F2406D1B510 for ; Thu, 25 Sep 2003 23:22:37 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 80418-06 for ; Thu, 25 Sep 2003 20:22:09 -0300 (ADT) Received: from conexa.fciencias.unam.mx (conexa.fciencias.unam.mx [132.248.109.170]) by svr1.postgresql.org (Postfix) with ESMTP id 54949D1B51D for ; Thu, 25 Sep 2003 20:22:03 -0300 (ADT) Received: (from masm@localhost) by conexa.fciencias.unam.mx (8.11.6/8.11.6) id h8PNSfh07622; Thu, 25 Sep 2003 18:28:41 -0500 X-Authentication-Warning: conexa.fciencias.unam.mx: masm set sender to masm@fciencias.unam.mx using -f To: "Donald Fraser" Cc: "[ADMIN]" Subject: Re: Case Insensitive Test References: <00e301c383af$02efa0c0$1664a8c0@DEMOLITION> <00f901c383b6$b3040ee0$1664a8c0@DEMOLITION> In-Reply-To: <00f901c383b6$b3040ee0$1664a8c0@DEMOLITION> Message-ID: From: Manuel Sugawara User-Name: Manuel Sugawara User-Mail-Address: masm@fciencias.unam.mx Date: 25 Sep 2003 18:28:41 -0500 Lines: 32 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/422 X-Sequence-Number: 10510 "Donald Fraser" writes: > > Nice work, just two comments (1) the C++ comment style (//) is not > > portable for C programs and should be changed and (2) the standard way > > Fair comment but since it has to be compiled against a valid > PosgtreSQL distribution, which all require GNU compilers, I don't > see what the problem is. PostgreSQL compiles fine with many compilers in many platforms, and not only with gcc: it's designed that way with a lot of effort and headaches; just check the list of supported plataforms > > to distribute this kind of stuff is a tarball, zip is more from the > > windows world. > > Ok its I added the tar.gz file to the distribution, which you'll note it twice > the size of the zip file. May be I don't know how to use tar properly but > that's why I used the zip format - it always seems to come out smaller by at > least a factor of 2. Really?, Mine is smaller: masm@conexa$ ls -l citext.* -rw-r--r-- 1 masm masm 7334 sep 25 17:00 citext.zip -rw-r--r-- 1 masm masm 7147 sep 25 18:12 citext.tar.gz [downloading yours]..., Oh I see: you are using compress(1) instead of gzip. Regards, Manuel. From demolish@cwgsy.net Thu Sep 25 23:52:04 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 9871BD1B504 for ; Thu, 25 Sep 2003 23:52:04 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 82322-05 for ; Thu, 25 Sep 2003 20:51:57 -0300 (ADT) Received: from CISX-Linux4.cisx.com (unknown [213.133.202.58]) by svr1.postgresql.org (Postfix) with ESMTP id 7609AD1B538 for ; Thu, 25 Sep 2003 20:51:53 -0300 (ADT) Received: from DEMOLITION ([192.168.100.22]) by CISX-Linux4.cisx.com (8.12.8/8.12.8) with SMTP id h8PNonOF016843 for ; Fri, 26 Sep 2003 00:50:49 +0100 Message-ID: <013001c383c0$0dc35350$1664a8c0@DEMOLITION> From: "Donald Fraser" To: "[ADMIN]" References: <00e301c383af$02efa0c0$1664a8c0@DEMOLITION><00f901c383b6$b3040ee0$1664a8c0@DEMOLITION> Subject: Re: Case Insensitive Test Date: Fri, 26 Sep 2003 00:52:16 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4927.1200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/423 X-Sequence-Number: 10511 ----- Original Message ----- From: "Manuel Sugawara" To: "Donald Fraser" Cc: "[ADMIN]" Sent: Friday, September 26, 2003 12:28 AM Subject: Re: [ADMIN] Case Insensitive Test > "Donald Fraser" writes: > > > > Nice work, just two comments (1) the C++ comment style (//) is not > > > portable for C programs and should be changed and (2) the standard way > > > > Fair comment but since it has to be compiled against a valid > > PosgtreSQL distribution, which all require GNU compilers, I don't > > see what the problem is. > > PostgreSQL compiles fine with many compilers in many platforms, and > not only with gcc: it's designed that way with a lot of effort and > headaches; just check the list of supported plataforms Ok so it was only a few lines. Have updated CVS with that minor change. > > > to distribute this kind of stuff is a tarball, zip is more from the > > > windows world. > > > > Ok its I added the tar.gz file to the distribution, which you'll note it twice > > the size of the zip file. May be I don't know how to use tar properly but > > that's why I used the zip format - it always seems to come out smaller by at > > least a factor of 2. > > Really?, Mine is smaller: > > masm@conexa$ ls -l citext.* > -rw-r--r-- 1 masm masm 7334 sep 25 17:00 citext.zip > -rw-r--r-- 1 masm masm 7147 sep 25 18:12 citext.tar.gz > > [downloading yours]..., Oh I see: you are using compress(1) instead of > gzip. Have now used the -z option as opposed to the -Z option which I didn't realise there was any difference. Yes it is now smaller than the .zip version. Cheers Donald From tgl@sss.pgh.pa.us Fri Sep 26 00:43:45 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7CAB7D1B532 for ; Fri, 26 Sep 2003 00:43:45 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 88405-05 for ; Thu, 25 Sep 2003 21:43:38 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 97154D1B52B for ; Thu, 25 Sep 2003 21:43:34 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h8Q0ha6c006054; Thu, 25 Sep 2003 20:43:36 -0400 (EDT) To: "Donald Fraser" Cc: "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-reply-to: <012601c383b9$795f8f40$1664a8c0@DEMOLITION> References: <012601c383b9$795f8f40$1664a8c0@DEMOLITION> Comments: In-reply-to "Donald Fraser" message dated "Fri, 26 Sep 2003 00:05:11 +0100" Date: Thu, 25 Sep 2003 20:43:36 -0400 Message-ID: <6053.1064537016@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/426 X-Sequence-Number: 10514 "Donald Fraser" writes: >> Nice work, just two comments (1) the C++ comment style (//) is not >> portable for C programs and should be changed and (2) the standard way > Fair comment but since it has to be compiled against a valid PosgtreSQL > distribution, which all require GNU compilers, We have several beta testers who keep us honest on exactly this point; they use compilers that do not take //. Personally I wish gcc could be configured not to have these little non-ANSI-isms ... > Ok its I added the tar.gz file to the distribution, which you'll note > it twice the size of the zip file. Shouldn't be. Did you use "gzip -9"? For instance, I get these sorts of numbers on a directory full of C source files: $ ls -l z.* -rw-r--r-- 1 tgl users 142048 Sep 25 20:40 z.tar.gz -rw-r--r-- 1 tgl users 156389 Sep 25 20:41 z.zip regards, tom lane From ler@lerctr.org Fri Sep 26 00:57:48 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 405CDD1B4E2 for ; Fri, 26 Sep 2003 00:57:48 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 93028-01 for ; Thu, 25 Sep 2003 21:57:19 -0300 (ADT) Received: from lerami.lerctr.org (lerami.lerctr.org [207.158.72.11]) by svr1.postgresql.org (Postfix) with ESMTP id A9C04D1B509 for ; Thu, 25 Sep 2003 21:57:15 -0300 (ADT) Received: from lerlaptop.lerctr.org (lerlaptop.lerctr.org [207.158.72.14]) (authenticated bits=0) by lerami.lerctr.org (8.12.10/8.12.10/20030923) with ESMTP id h8Q0vDQa006843; Thu, 25 Sep 2003 19:57:14 -0500 (CDT) Date: Thu, 25 Sep 2003 19:57:12 -0500 From: Larry Rosenman To: Tom Lane , Donald Fraser Cc: "[ADMIN]" Subject: Re: Fw: Case Insensitive Test Message-ID: <57810000.1064537832@lerlaptop.lerctr.org> In-Reply-To: <6053.1064537016@sss.pgh.pa.us> References: <012601c383b9$795f8f40$1664a8c0@DEMOLITION> <6053.1064537016@sss.pgh.pa.us> X-Mailer: Mulberry/3.1.0b7 (Linux/x86) X-PGP-Info: All other keys are old/dead. X-PGP-Key: 0x3c49bdd6 X-PGP-Fingerprint: D0D1 3C11 F42F 6B29 FA67 6BF3 AD13 4685 3C49 BDD6 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="==========BF48DD48AB9EE58EF5BE==========" X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/427 X-Sequence-Number: 10515 --==========BF48DD48AB9EE58EF5BE========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline --On Thursday, September 25, 2003 20:43:36 -0400 Tom Lane=20 wrote: > "Donald Fraser" writes: >>> Nice work, just two comments (1) the C++ comment style (//) is not >>> portable for C programs and should be changed and (2) the standard way > >> Fair comment but since it has to be compiled against a valid PosgtreSQL >> distribution, which all require GNU compilers, > > We have several beta testers who keep us honest on exactly this point; > they use compilers that do not take //. Personally I wish gcc could > be configured not to have these little non-ANSI-isms ... Actually, I *THINK* C99 allows // comments, but that's neither here nor=20 there. Any pre-C99 Non-GCC compiler won't allow it (I'm one of the aforementioned= =20 beta testers, I use the SCO cc (native) compiler on UnixWare)). --=20 Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: ler@lerctr.org US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749 --==========BF48DD48AB9EE58EF5BE========== Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/c47prRNGhTxJvdYRAimeAJ9/Zk1w9JlJQTA5I0pZzAtiWwFi3ACfQV7f WpHodyXFN2sLpQejZyc73n0= =G7yJ -----END PGP SIGNATURE----- --==========BF48DD48AB9EE58EF5BE==========-- From tgl@sss.pgh.pa.us Fri Sep 26 01:24:26 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 01FB4D1B4E2 for ; Fri, 26 Sep 2003 01:24:26 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 93077-08 for ; Thu, 25 Sep 2003 22:24:19 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 1110AD1B511 for ; Thu, 25 Sep 2003 22:24:15 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h8Q1OD6c006724; Thu, 25 Sep 2003 21:24:13 -0400 (EDT) To: Larry Rosenman Cc: Donald Fraser , "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-reply-to: <57810000.1064537832@lerlaptop.lerctr.org> References: <012601c383b9$795f8f40$1664a8c0@DEMOLITION> <6053.1064537016@sss.pgh.pa.us> <57810000.1064537832@lerlaptop.lerctr.org> Comments: In-reply-to Larry Rosenman message dated "Thu, 25 Sep 2003 19:57:12 -0500" Date: Thu, 25 Sep 2003 21:24:13 -0400 Message-ID: <6723.1064539453@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/428 X-Sequence-Number: 10516 Larry Rosenman writes: >> We have several beta testers who keep us honest on exactly this point; >> they use compilers that do not take //. Personally I wish gcc could >> be configured not to have these little non-ANSI-isms ... > Actually, I *THINK* C99 allows // comments, but that's neither here nor > there. It does, but we still try to conform to ANSI C (C89 or whenever it was). regards, tom lane From chad@eldocomp.com Fri Sep 26 05:07:21 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 45D94D1B52F for ; Fri, 26 Sep 2003 05:07:21 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 14879-10 for ; Fri, 26 Sep 2003 02:06:50 -0300 (ADT) Received: from ecintweb.eldocomp.com (smtp.eldocomp.com [205.159.99.8]) by svr1.postgresql.org (Postfix) with ESMTP id 90A78D1B4E9 for ; Fri, 26 Sep 2003 02:06:42 -0300 (ADT) Received: by ecintweb.eldocomp.com with XWall v3.27j ; Thu, 25 Sep 2003 22:06:42 -0700 From: "Chad R. Larson" To: Tom Lane , Larry Rosenman Cc: Donald Fraser , "[ADMIN]" Subject: Re: Fw: Case Insensitive Test Date: Thu, 25 Sep 2003 22:07:09 -0700 X-Assembled-By: XWall v3.27j X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2 Message-ID: <4.2.2.20030925220310.01955f08@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/434 X-Sequence-Number: 10522 At 06:24 PM 9/25/2003 , Tom Lane wrote: >Larry Rosenman writes: > >> We have several beta testers who keep us honest on exactly this point; > >> they use compilers that do not take //. Personally I wish gcc could > >> be configured not to have these little non-ANSI-isms ... I suspect that among the conformance switches, you can find a combination= =20 you like: ---------------------------------- Language Options -ansi -fall-virtual -fcond-mismatch -fdollars-in-identifiers -fenum-int-equiv -fexternal-templates -fno-asm -fno-builtin -fhosted -fno-hosted -ffreestanding -fno-freestanding -fno-strict-prototype -fsigned-bitfields -fsigned-char -fthis-is-variable -funsigned-bitfields -funsigned-char -fwritable-strings -traditional -traditional-cpp -trigraphs --------------------------------- Also, look at the warning options "-pedantic" and "-pedantic-errors". -- CONFIDENTIALITY NOTICE -- This message is intended for the sole use of the individual and entity to w= hom it is addressed, and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email, and delete the message. Thank you. From tgl@sss.pgh.pa.us Fri Sep 26 05:17:53 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 9029FD1B53C for ; Fri, 26 Sep 2003 05:17:53 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 33257-02 for ; Fri, 26 Sep 2003 02:17:43 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 8B7B4D1B51D for ; Fri, 26 Sep 2003 02:17:42 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h8Q5HT6c008976; Fri, 26 Sep 2003 01:17:29 -0400 (EDT) To: "Chad R. Larson" Cc: Larry Rosenman , Donald Fraser , "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-reply-to: <4.2.2.20030925220310.01955f08@localhost> References: <4.2.2.20030925220310.01955f08@localhost> Comments: In-reply-to "Chad R. Larson" message dated "Thu, 25 Sep 2003 22:07:09 -0700" Date: Fri, 26 Sep 2003 01:17:29 -0400 Message-ID: <8975.1064553449@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/429 X-Sequence-Number: 10517 "Chad R. Larson" writes: > I suspect that among the conformance switches, you can find a combination > you like: I've been through them. None of 'em turn off // comments. Or #-sign preprocessor assertions, or a few other post-ANSI-C inventions. (Hell, preprocessor assertions aren't in C99 either.) > Also, look at the warning options "-pedantic" and "-pedantic-errors". As the GCC folks advise, those are useful only for pedants. I'm not interested in pedantry, but portability. I don't think the GCC guys really care about backwards compatibility to old compilers ... which is surely their right, but it's kind of a problem for those of us who'd like to maintain portable application code. regards, tom lane From sszabo@megazone.bigpanda.com Fri Sep 26 05:53:38 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 2DD3DD1B54A for ; Fri, 26 Sep 2003 05:53:38 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 36997-02 for ; Fri, 26 Sep 2003 02:53:08 -0300 (ADT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id 38643D1B56C for ; Fri, 26 Sep 2003 02:53:07 -0300 (ADT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 5219B35463; Thu, 25 Sep 2003 22:53:07 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 5053D35458; Thu, 25 Sep 2003 22:53:07 -0700 (PDT) Date: Thu, 25 Sep 2003 22:53:07 -0700 (PDT) From: Stephan Szabo To: Tom Lane Cc: "Chad R. Larson" , Larry Rosenman , Donald Fraser , "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-Reply-To: <8975.1064553449@sss.pgh.pa.us> Message-ID: <20030925222934.F96784@megazone.bigpanda.com> References: <4.2.2.20030925220310.01955f08@localhost> <8975.1064553449@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/430 X-Sequence-Number: 10518 On Fri, 26 Sep 2003, Tom Lane wrote: > "Chad R. Larson" writes: > > I suspect that among the conformance switches, you can find a combination > > you like: > > I've been through them. None of 'em turn off // comments. Or #-sign On at least some versions of gcc it looks like --std=c89 turns them off (my system's 3.2 does and so does another's 2.95.4) I used the little program: #include int main() { int a1 = 5 //*2*/ +3; printf("%d\n", a1); } Without the option, 8 is printed, with it 1 is printed. We don't appear to compile with the option on my system however. It looks like differences between the includes in test programs in configure and when actually building cause errors. In my case struct addrinfo isn't found in configure, but it is found when actually building (due indirectly to an include of stdio.h) causing redefinition errors. From tgl@sss.pgh.pa.us Fri Sep 26 06:02:54 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0B02DD1B4FF for ; Fri, 26 Sep 2003 06:02:54 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 44204-01 for ; Fri, 26 Sep 2003 03:02:44 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 9D1CDD1B50A for ; Fri, 26 Sep 2003 03:02:42 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h8Q62W6c009397; Fri, 26 Sep 2003 02:02:33 -0400 (EDT) To: Stephan Szabo Cc: "Chad R. Larson" , Larry Rosenman , Donald Fraser , "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-reply-to: <20030925222934.F96784@megazone.bigpanda.com> References: <4.2.2.20030925220310.01955f08@localhost> <8975.1064553449@sss.pgh.pa.us> <20030925222934.F96784@megazone.bigpanda.com> Comments: In-reply-to Stephan Szabo message dated "Thu, 25 Sep 2003 22:53:07 -0700" Date: Fri, 26 Sep 2003 02:02:32 -0400 Message-ID: <9396.1064556152@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/431 X-Sequence-Number: 10519 Stephan Szabo writes: >> I've been through them. None of 'em turn off // comments. Or #-sign > On at least some versions of gcc it looks like --std=c89 turns them off Hmm, I haven't tried that in particular. I wonder what else it does? > We don't appear to compile with the option on my system however. Yeah, I was just fighting what seemed to be a similar problem on Mac OS X. The vendors may or may not check that their compiler handles all 2^N combinations of switches ... but for sure they don't check that all the header files they supply will compile under all 2^N combinations of switches ... regards, tom lane From scott.marlowe@ihs.com Fri Sep 26 14:14:11 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7294BD1B4EE for ; Fri, 26 Sep 2003 14:14:11 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 22318-03 for ; Fri, 26 Sep 2003 11:14:04 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id E6392D1B4FC for ; Fri, 26 Sep 2003 11:13:55 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.10/8.12.10) with ESMTP id h8QECa1o004774; Fri, 26 Sep 2003 08:12:36 -0600 (MDT) Date: Fri, 26 Sep 2003 08:07:30 -0600 (MDT) From: "scott.marlowe" To: Tom Lane Cc: Donald Fraser , "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-Reply-To: <6053.1064537016@sss.pgh.pa.us> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IHS-MailScanner: Found to be clean X-IHS-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/436 X-Sequence-Number: 10524 On Thu, 25 Sep 2003, Tom Lane wrote: > "Donald Fraser" writes: > >> Nice work, just two comments (1) the C++ comment style (//) is not > >> portable for C programs and should be changed and (2) the standard way > > > Fair comment but since it has to be compiled against a valid PosgtreSQL > > distribution, which all require GNU compilers, > > We have several beta testers who keep us honest on exactly this point; > they use compilers that do not take //. Personally I wish gcc could > be configured not to have these little non-ANSI-isms ... > > > Ok its I added the tar.gz file to the distribution, which you'll note > > it twice the size of the zip file. > > Shouldn't be. Did you use "gzip -9"? For instance, I get these sorts > of numbers on a directory full of C source files: > > $ ls -l z.* > -rw-r--r-- 1 tgl users 142048 Sep 25 20:40 z.tar.gz > -rw-r--r-- 1 tgl users 156389 Sep 25 20:41 z.zip And, as always, bzip2 beats them both: ls -l cit* -rw------- 1 scott.ma scott.ma 6317 Sep 26 08:06 citext.tar.bz2 -rw------- 1 scott.ma scott.ma 7056 Sep 26 08:00 citext.tar.gz -rw------- 1 scott.ma scott.ma 7334 Sep 26 08:01 citext.zip (gzip run with -9 switch) From sszabo@megazone.bigpanda.com Fri Sep 26 14:54:58 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id D6466D1B4F2 for ; Fri, 26 Sep 2003 14:54:58 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 29664-05 for ; Fri, 26 Sep 2003 11:54:51 -0300 (ADT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id A7962D1B4E1 for ; Fri, 26 Sep 2003 11:54:47 -0300 (ADT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 1EA003541A; Fri, 26 Sep 2003 07:54:47 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 1D0DD34DBC; Fri, 26 Sep 2003 07:54:47 -0700 (PDT) Date: Fri, 26 Sep 2003 07:54:47 -0700 (PDT) From: Stephan Szabo To: Tom Lane Cc: "Chad R. Larson" , Larry Rosenman , Donald Fraser , "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-Reply-To: <9396.1064556152@sss.pgh.pa.us> Message-ID: <20030926074907.C4723@megazone.bigpanda.com> References: <4.2.2.20030925220310.01955f08@localhost> <8975.1064553449@sss.pgh.pa.us> <20030925222934.F96784@megazone.bigpanda.com> <9396.1064556152@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/437 X-Sequence-Number: 10525 On Fri, 26 Sep 2003, Tom Lane wrote: > Stephan Szabo writes: > >> I've been through them. None of 'em turn off // comments. Or #-sign > > > On at least some versions of gcc it looks like --std=c89 turns them off > > Hmm, I haven't tried that in particular. I wonder what else it does? It looks from the headers, that by default that'll not define a bunch of extensions stuff. It's apparently enough stuff that even if I get around the immediate problem I had I get a complaint about SIG_SETMASK being undeclared (it looks like it's only defined when __USE_POSIX). However, the immediate problem I have seems to come from the fact that on Linux at least we're basically lying to configure about what's in the system headers when we go to compile. port/linux.h on my system defined _GNU_SOURCE which forces most/all of the extension things to be defined even if they wouldn't by the command line options. So, the compilation sees different contents of the headers than configure did which means that configure may say that something isn't defined, but it might be when we go and compile. From tgl@sss.pgh.pa.us Fri Sep 26 15:11:07 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 49387D1B4FD for ; Fri, 26 Sep 2003 15:11:07 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 41109-05 for ; Fri, 26 Sep 2003 12:10:56 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id B1A35D1B508 for ; Fri, 26 Sep 2003 12:10:55 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h8QFAg6c015847; Fri, 26 Sep 2003 11:10:42 -0400 (EDT) To: Stephan Szabo Cc: "Chad R. Larson" , Larry Rosenman , Donald Fraser , "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-reply-to: <20030926074907.C4723@megazone.bigpanda.com> References: <4.2.2.20030925220310.01955f08@localhost> <8975.1064553449@sss.pgh.pa.us> <20030925222934.F96784@megazone.bigpanda.com> <9396.1064556152@sss.pgh.pa.us> <20030926074907.C4723@megazone.bigpanda.com> Comments: In-reply-to Stephan Szabo message dated "Fri, 26 Sep 2003 07:54:47 -0700" Date: Fri, 26 Sep 2003 11:10:42 -0400 Message-ID: <15846.1064589042@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/438 X-Sequence-Number: 10526 Stephan Szabo writes: > However, the immediate problem I have seems to come from the fact that > on Linux at least we're basically lying to configure about what's in the > system headers when we go to compile. port/linux.h on my system defined > _GNU_SOURCE which forces most/all of the extension things to be defined > even if they wouldn't by the command line options. Hm. I have to plead guilty to putting that #define in there. It was a quick-and-dirty workaround to make plperl compile. Perhaps a better solution would be for template/linux to add the appropriate thing to CPPFLAGS, so that configure would see the same environment. Can you try that and see if it fixes your issue? (What exactly is your issue, anyway?) regards, tom lane From sszabo@megazone.bigpanda.com Fri Sep 26 16:07:42 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 17A35D1B4E3 for ; Fri, 26 Sep 2003 16:07:42 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 56291-02 for ; Fri, 26 Sep 2003 13:07:31 -0300 (ADT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id CA411D1B4F5 for ; Fri, 26 Sep 2003 13:07:30 -0300 (ADT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 668B135377; Fri, 26 Sep 2003 09:07:30 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 64C4035373; Fri, 26 Sep 2003 09:07:30 -0700 (PDT) Date: Fri, 26 Sep 2003 09:07:30 -0700 (PDT) From: Stephan Szabo To: Tom Lane Cc: "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-Reply-To: <15846.1064589042@sss.pgh.pa.us> Message-ID: <20030926082241.A4723@megazone.bigpanda.com> References: <4.2.2.20030925220310.01955f08@localhost> <8975.1064553449@sss.pgh.pa.us> <20030925222934.F96784@megazone.bigpanda.com> <9396.1064556152@sss.pgh.pa.us> <20030926074907.C4723@megazone.bigpanda.com> <15846.1064589042@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1391333285-1064592450=:4723" X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/439 X-Sequence-Number: 10527 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-1391333285-1064592450=:4723 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 26 Sep 2003, Tom Lane wrote: > Stephan Szabo writes: > > However, the immediate problem I have seems to come from the fact that > > on Linux at least we're basically lying to configure about what's in the > > system headers when we go to compile. port/linux.h on my system defined > > _GNU_SOURCE which forces most/all of the extension things to be defined > > even if they wouldn't by the command line options. > > Hm. I have to plead guilty to putting that #define in there. It was a > quick-and-dirty workaround to make plperl compile. Perhaps a better > solution would be for template/linux to add the appropriate thing to > CPPFLAGS, so that configure would see the same environment. Can you > try that and see if it fixes your issue? (What exactly is your issue, > anyway?) Configure doesn't find struct addrinfo (because it's in a __USE_POSIX block) so it looks like we use our own version, but, when we're actually then compiling getaddrinfo.c, there's a redefinition error because this time struct addrinfo is found (because _GNU_SOURCE forces __USE_POSIX). It looks like commenting it out of linux.h and adding it to template/linux works for the main build, it compiles and links fine both with and without --std=c89 and the latter also passes regression. I didn't try to build plperl however. --0-1391333285-1064592450=:4723 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="gnusource.diff" Content-Transfer-Encoding: BASE64 Content-ID: <20030926090730.O4723@megazone.bigpanda.com> Content-Description: Content-Disposition: attachment; filename="gnusource.diff" SW5kZXg6IHNyYy9pbmNsdWRlL3BvcnQvbGludXguaA0KPT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PQ0KUkNTIGZpbGU6IC9wcm9qZWN0cy9jdnNyb290L3Bnc3Fs LXNlcnZlci9zcmMvaW5jbHVkZS9wb3J0L2xpbnV4Lmgsdg0KcmV0cmlldmlu ZyByZXZpc2lvbiAxLjM0DQpkaWZmIC1jIC1yMS4zNCBsaW51eC5oDQoqKiog c3JjL2luY2x1ZGUvcG9ydC9saW51eC5oCTE0IFNlcCAyMDAzIDIwOjIxOjE4 IC0wMDAwCTEuMzQNCi0tLSBzcmMvaW5jbHVkZS9wb3J0L2xpbnV4LmgJMjYg U2VwIDIwMDMgMTU6MzQ6NDggLTAwMDANCioqKioqKioqKioqKioqKg0KKioq IDEsOSAqKioqDQotIC8qIEZvcmNlIF9HTlVfU09VUkNFIG9uOyBwbHBlcmwg aXMgYnJva2VuIHdpdGggUGVybCA1LjguMCBvdGhlcndpc2UgKi8NCi0gI2lm bmRlZiBfR05VX1NPVVJDRQ0KLSAjZGVmaW5lIF9HTlVfU09VUkNFIDENCi0g I2VuZGlmDQotIA0KLSANCiAgI2lmIGRlZmluZWQoX19pMzg2X18pIHx8IGRl ZmluZWQoX194ODZfNjRfXykNCiAgdHlwZWRlZiB1bnNpZ25lZCBjaGFyIHNs b2NrX3Q7DQogIA0KLS0tIDEsMyAtLS0tDQpJbmRleDogc3JjL3RlbXBsYXRl L2xpbnV4DQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1MgZmlsZTogL3By b2plY3RzL2N2c3Jvb3QvcGdzcWwtc2VydmVyL3NyYy90ZW1wbGF0ZS9saW51 eCx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMTQNCmRpZmYgLWMgLXIxLjE0 IGxpbnV4DQoqKiogc3JjL3RlbXBsYXRlL2xpbnV4CTEzIFNlcCAyMDAzIDE0 OjQ5OjUxIC0wMDAwCTEuMTQNCi0tLSBzcmMvdGVtcGxhdGUvbGludXgJMjYg U2VwIDIwMDMgMTU6MzQ6NTAgLTAwMDANCioqKioqKioqKioqKioqKg0KKioq IDQsNyAqKioqDQogIE5FRURfUkVFTlRSQU5UX0ZVTkNTPXllcwkjIHZlcmlm aWVkIGdsaWJjIDIuMSAyMDAzLTA5LTAzDQogIFRIUkVBRF9DRkxBR1M9Ii1E X1JFRU5UUkFOVCAtRF9USFJFQURfU0FGRSAtRF9QT1NJWF9QVEhSRUFEX1NF TUFOVElDUyINCiAgVEhSRUFEX0xJQlM9Ii1scHRocmVhZCINCiEgDQotLS0g NCw3IC0tLS0NCiAgTkVFRF9SRUVOVFJBTlRfRlVOQ1M9eWVzCSMgdmVyaWZp ZWQgZ2xpYmMgMi4xIDIwMDMtMDktMDMNCiAgVEhSRUFEX0NGTEFHUz0iLURf UkVFTlRSQU5UIC1EX1RIUkVBRF9TQUZFIC1EX1BPU0lYX1BUSFJFQURfU0VN QU5USUNTIg0KICBUSFJFQURfTElCUz0iLWxwdGhyZWFkIg0KISBDUFBGTEFH Uz0iLURfR05VX1NPVVJDRSIgIyBGb3JjZSBfR05VX1NPVVJDRSBvbjsgcGxw ZXJsIGlzIGJyb2tlbiB3aXRoIFBlcmwgNS44LjAgb3RoZXJ3aXNlIA0K --0-1391333285-1064592450=:4723-- From tgl@sss.pgh.pa.us Fri Sep 26 17:40:40 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 90380D1B4F5 for ; Fri, 26 Sep 2003 17:40:40 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 83134-01 for ; Fri, 26 Sep 2003 14:40:31 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id A9220D1B538 for ; Fri, 26 Sep 2003 14:40:29 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h8QHeT6c024813; Fri, 26 Sep 2003 13:40:29 -0400 (EDT) To: Stephan Szabo Cc: "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-reply-to: <20030926082241.A4723@megazone.bigpanda.com> References: <4.2.2.20030925220310.01955f08@localhost> <8975.1064553449@sss.pgh.pa.us> <20030925222934.F96784@megazone.bigpanda.com> <9396.1064556152@sss.pgh.pa.us> <20030926074907.C4723@megazone.bigpanda.com> <15846.1064589042@sss.pgh.pa.us> <20030926082241.A4723@megazone.bigpanda.com> Comments: In-reply-to Stephan Szabo message dated "Fri, 26 Sep 2003 09:07:30 -0700" Date: Fri, 26 Sep 2003 13:40:29 -0400 Message-ID: <24812.1064598029@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/441 X-Sequence-Number: 10529 Stephan Szabo writes: > It looks like commenting it out of linux.h and adding it to template/linux > works for the main build, it compiles and links fine both with and without > --std=c89 and the latter also passes regression. I didn't try to build > plperl however. Okay, I verified that it still works for plperl (and that I do still see the plperl failure without _GNU_SOURCE). Patch committed. regards, tom lane From pgman@candle.pha.pa.us Fri Sep 26 17:42:16 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id B4FCED1B4F9 for ; Fri, 26 Sep 2003 17:42:16 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 80945-08 for ; Fri, 26 Sep 2003 14:42:07 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 4D52ED1B4E3 for ; Fri, 26 Sep 2003 14:42:05 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h8QHg1013081; Fri, 26 Sep 2003 13:42:01 -0400 (EDT) From: Bruce Momjian Message-Id: <200309261742.h8QHg1013081@candle.pha.pa.us> Subject: Re: Fw: Case Insensitive Test In-Reply-To: <24812.1064598029@sss.pgh.pa.us> To: Tom Lane Date: Fri, 26 Sep 2003 13:42:01 -0400 (EDT) Cc: Stephan Szabo , "[ADMIN]" X-Mailer: ELM [version 2.4ME+ PL106 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/442 X-Sequence-Number: 10530 Tom Lane wrote: > Stephan Szabo writes: > > It looks like commenting it out of linux.h and adding it to template/linux > > works for the main build, it compiles and links fine both with and without > > --std=c89 and the latter also passes regression. I didn't try to build > > plperl however. > > Okay, I verified that it still works for plperl (and that I do still see > the plperl failure without _GNU_SOURCE). Patch committed. That _GNU_SOURCE has always bothered me. What does it control, exactly? It seems to control a lot. -- 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 tgl@sss.pgh.pa.us Fri Sep 26 17:58:19 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 8D802D1B4E3 for ; Fri, 26 Sep 2003 17:58:19 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 83475-10 for ; Fri, 26 Sep 2003 14:58:10 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id AECD7D1B519 for ; Fri, 26 Sep 2003 14:58:08 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h8QHw16c024983; Fri, 26 Sep 2003 13:58:02 -0400 (EDT) To: Bruce Momjian Cc: Stephan Szabo , "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-reply-to: <200309261742.h8QHg1013081@candle.pha.pa.us> References: <200309261742.h8QHg1013081@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Fri, 26 Sep 2003 13:42:01 -0400" Date: Fri, 26 Sep 2003 13:58:01 -0400 Message-ID: <24982.1064599081@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/443 X-Sequence-Number: 10531 Bruce Momjian writes: > That _GNU_SOURCE has always bothered me. What does it control, exactly? > It seems to control a lot. Well, without it I get (on RHL 8.0) gcc -O2 -g -fpic -I. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../../../src/include -c -o plperl.o plperl.c In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/op.h:480, from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2209, from plperl.c:60: /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:602: field `_crypt_struct' has incomplete type /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:747: confused by earlier errors, bailing out make: *** [plperl.o] Error 1 The relevant chunk of that Perl header is #ifdef HAS_CRYPT_R #if CRYPT_R_PROTO == REENTRANT_PROTO_B_CCD CRYPTD* _crypt_data; #else struct crypt_data _crypt_struct; #endif #endif /* HAS_CRYPT_R */ and the problem is that HAS_CRYPT_R has gotten defined but "struct crypt_data" has not. It's been awhile since I looked at this, but I think that Perl configures HAS_CRYPT_R on the basis of a link-only test for crypt_r(), which will succeed regardless of -D symbols. And (in this Linux version, anyway) /usr/include/crypt.h only defines struct crypt_data if __USE_GNU is defined (which comes from _GNU_SOURCE). So we're more or less stuck --- perl.h simply does not compile without _GNU_SOURCE on this platform. This is arguably a configuration bug in Perl; we have hit comparable difficulties in PG, and had to solve them by the expedient of testing for both compile-time and link-time presence of library features. They're not being careful enough. Experimenting, I notice that ecpg also currently fails to compile without _GNU_SOURCE on that box. It looks to me like the system headers have a rather arbitrary set of ideas on what to remove when _GNU_SOURCE isn't defined... regards, tom lane From pgman@candle.pha.pa.us Fri Sep 26 18:03:17 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 6273ED1B50B for ; Fri, 26 Sep 2003 18:03:17 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 83603-07 for ; Fri, 26 Sep 2003 15:03:08 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id EE754D1B4E9 for ; Fri, 26 Sep 2003 15:03:05 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h8QI32A19866; Fri, 26 Sep 2003 14:03:02 -0400 (EDT) From: Bruce Momjian Message-Id: <200309261803.h8QI32A19866@candle.pha.pa.us> Subject: Re: Fw: Case Insensitive Test In-Reply-To: <24982.1064599081@sss.pgh.pa.us> To: Tom Lane Date: Fri, 26 Sep 2003 14:03:02 -0400 (EDT) Cc: Stephan Szabo , "[ADMIN]" X-Mailer: ELM [version 2.4ME+ PL106 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/444 X-Sequence-Number: 10532 Tom Lane wrote: > and the problem is that HAS_CRYPT_R has gotten defined but "struct > crypt_data" has not. It's been awhile since I looked at this, but I > think that Perl configures HAS_CRYPT_R on the basis of a link-only test > for crypt_r(), which will succeed regardless of -D symbols. And (in > this Linux version, anyway) /usr/include/crypt.h only defines struct > crypt_data if __USE_GNU is defined (which comes from _GNU_SOURCE). > So we're more or less stuck --- perl.h simply does not compile without > _GNU_SOURCE on this platform. > > This is arguably a configuration bug in Perl; we have hit comparable > difficulties in PG, and had to solve them by the expedient of testing > for both compile-time and link-time presence of library features. > They're not being careful enough. > > Experimenting, I notice that ecpg also currently fails to compile > without _GNU_SOURCE on that box. It looks to me like the system headers > have a rather arbitrary set of ideas on what to remove when _GNU_SOURCE > isn't defined... I know the Pg:DBD guys had to define _GNU_SOURCE to get something working, but it wasn't per-platform, and I was concerned about that. They found another way to do it and have to test to see if it is going to work for all configuration. I just don't know if _GNU_SOURCE opens up other problems that we will only find later --- it seems like a large knob, but if it is required, it is required, I guess. -- 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 peter_e@gmx.net Fri Sep 26 18:25:35 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 59301D1B508 for ; Fri, 26 Sep 2003 18:25:35 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 92019-09 for ; Fri, 26 Sep 2003 15:25:04 -0300 (ADT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id EC559D1B4E1 for ; Fri, 26 Sep 2003 15:25:02 -0300 (ADT) Received: (qmail 19512 invoked by uid 65534); 26 Sep 2003 18:25:00 -0000 Received: from dsl-082-082-165-247.arcor-ip.net (EHLO dsl-082-082-165-247.arcor-ip.net) (82.82.165.247) by mail.gmx.net (mp003) with SMTP; 26 Sep 2003 20:25:00 +0200 X-Authenticated: #495269 Date: Fri, 26 Sep 2003 20:24:32 +0200 (CEST) From: Peter Eisentraut X-X-Sender: peter@peter.localdomain To: Stephan Szabo Cc: Tom Lane , "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-Reply-To: <20030926082241.A4723@megazone.bigpanda.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/445 X-Sequence-Number: 10533 Stephan Szabo writes: > Configure doesn't find struct addrinfo (because it's in a __USE_POSIX > block) so it looks like we use our own version, but, when we're actually > then compiling getaddrinfo.c, there's a redefinition error because this > time struct addrinfo is found (because _GNU_SOURCE forces __USE_POSIX). What exact system is this on? I've compiled PG on a number of Linux systems since struct addrinfo started to appear, and I've never had a problem. Neither have others. -- Peter Eisentraut peter_e@gmx.net From sszabo@megazone.bigpanda.com Fri Sep 26 19:26:20 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 099AFD1B52A for ; Fri, 26 Sep 2003 19:26:20 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 00886-06 for ; Fri, 26 Sep 2003 16:26:10 -0300 (ADT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id 3AAB0D1B529 for ; Fri, 26 Sep 2003 16:26:09 -0300 (ADT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 35B7735493; Fri, 26 Sep 2003 12:26:10 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 344AE3548F; Fri, 26 Sep 2003 12:26:10 -0700 (PDT) Date: Fri, 26 Sep 2003 12:26:10 -0700 (PDT) From: Stephan Szabo To: Peter Eisentraut Cc: Tom Lane , "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-Reply-To: Message-ID: <20030926122524.B8594@megazone.bigpanda.com> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/446 X-Sequence-Number: 10534 On Fri, 26 Sep 2003, Peter Eisentraut wrote: > Stephan Szabo writes: > > > Configure doesn't find struct addrinfo (because it's in a __USE_POSIX > > block) so it looks like we use our own version, but, when we're actually > > then compiling getaddrinfo.c, there's a redefinition error because this > > time struct addrinfo is found (because _GNU_SOURCE forces __USE_POSIX). > > What exact system is this on? I've compiled PG on a number of Linux > systems since struct addrinfo started to appear, and I've never had a > problem. Neither have others. It's not a problem for me unless I'm compiling with CFLAGS="-std=c89". From peter_e@gmx.net Fri Sep 26 20:33:09 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 55EBDD1B510 for ; Fri, 26 Sep 2003 20:33:09 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 14216-04 for ; Fri, 26 Sep 2003 17:33:00 -0300 (ADT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id 56A98D1B4FD for ; Fri, 26 Sep 2003 17:32:53 -0300 (ADT) Received: (qmail 6126 invoked by uid 65534); 26 Sep 2003 20:32:53 -0000 Received: from dsl-082-082-165-247.arcor-ip.net (EHLO dsl-082-082-165-247.arcor-ip.net) (82.82.165.247) by mail.gmx.net (mp009) with SMTP; 26 Sep 2003 22:32:53 +0200 X-Authenticated: #495269 Date: Fri, 26 Sep 2003 22:32:32 +0200 (CEST) From: Peter Eisentraut X-X-Sender: peter@peter.localdomain To: Stephan Szabo Cc: Tom Lane , "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-Reply-To: <20030926122524.B8594@megazone.bigpanda.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/448 X-Sequence-Number: 10536 Stephan Szabo writes: > It's not a problem for me unless I'm compiling with CFLAGS="-std=c89". Don't do that then. :-) I don't agree with cluttering the compile line with -D_GNU_SOURCE just for the case when someone adds additional unsupported compiler flags. We might as well add -fhosted just in case someone tries to compile with -ffreestanding. -- Peter Eisentraut peter_e@gmx.net From tgl@sss.pgh.pa.us Fri Sep 26 20:37:54 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id B67C2D1B52A for ; Fri, 26 Sep 2003 20:37:54 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 13301-09 for ; Fri, 26 Sep 2003 17:37:45 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 7191AD1B51A for ; Fri, 26 Sep 2003 17:37:43 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h8QKbh6c027120; Fri, 26 Sep 2003 16:37:43 -0400 (EDT) To: Peter Eisentraut Cc: Stephan Szabo , "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-reply-to: References: Comments: In-reply-to Peter Eisentraut message dated "Fri, 26 Sep 2003 22:32:32 +0200" Date: Fri, 26 Sep 2003 16:37:42 -0400 Message-ID: <27119.1064608662@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/449 X-Sequence-Number: 10537 Peter Eisentraut writes: > I don't agree with cluttering the compile line with -D_GNU_SOURCE just for > the case when someone adds additional unsupported compiler flags. Like "--with-perl"? The reason that got in there was not to deal with weird compiler flags, it was to deal with the standard Perl installation on RHL 8.0. regards, tom lane From sszabo@megazone.bigpanda.com Fri Sep 26 20:50:12 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id A79B6D1B544 for ; Fri, 26 Sep 2003 20:50:12 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 17880-01 for ; Fri, 26 Sep 2003 17:50:04 -0300 (ADT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id EE3A8D1B540 for ; Fri, 26 Sep 2003 17:50:01 -0300 (ADT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 41DFC35480; Fri, 26 Sep 2003 13:50:03 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 3F5443547E; Fri, 26 Sep 2003 13:50:03 -0700 (PDT) Date: Fri, 26 Sep 2003 13:50:03 -0700 (PDT) From: Stephan Szabo To: Peter Eisentraut Cc: Tom Lane , "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-Reply-To: Message-ID: <20030926134708.A32770@megazone.bigpanda.com> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/450 X-Sequence-Number: 10538 On Fri, 26 Sep 2003, Peter Eisentraut wrote: > Stephan Szabo writes: > > > It's not a problem for me unless I'm compiling with CFLAGS="-std=c89". > > Don't do that then. :-) Well, the discussion started with Tom trying to find an option that disallowed // comments for gcc. :) > I don't agree with cluttering the compile line with -D_GNU_SOURCE just for > the case when someone adds additional unsupported compiler flags. We > might as well add -fhosted just in case someone tries to compile with > -ffreestanding. Fundamentally however, having configure run with a fundamentally different compilation environment from an actual build (which _GNU_SOURCE basically does) is dangerous. Even without -std=c89, can we say for sure that the environment without it is exactly the same as with it? From tgl@sss.pgh.pa.us Fri Sep 26 20:59:26 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id A50F5D1B52C for ; Fri, 26 Sep 2003 20:59:26 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 20381-01 for ; Fri, 26 Sep 2003 17:59:15 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id E4FA0D1B50A for ; Fri, 26 Sep 2003 17:59:12 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h8QKxC6c027398; Fri, 26 Sep 2003 16:59:12 -0400 (EDT) To: Stephan Szabo Cc: Peter Eisentraut , "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-reply-to: <20030926134708.A32770@megazone.bigpanda.com> References: <20030926134708.A32770@megazone.bigpanda.com> Comments: In-reply-to Stephan Szabo message dated "Fri, 26 Sep 2003 13:50:03 -0700" Date: Fri, 26 Sep 2003 16:59:12 -0400 Message-ID: <27397.1064609952@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/451 X-Sequence-Number: 10539 Stephan Szabo writes: > Fundamentally however, having configure run with a fundamentally different > compilation environment from an actual build (which _GNU_SOURCE basically > does) is dangerous. Yes, having put _GNU_SOURCE into the port header rather than the port template file is an obvious error in hindsight. Mea culpa on that one. regards, tom lane From peter_e@gmx.net Fri Sep 26 21:47:00 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 23092D1B4E3 for ; Fri, 26 Sep 2003 21:47:00 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 29197-02 for ; Fri, 26 Sep 2003 18:46:52 -0300 (ADT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id EF9F1D1B4E1 for ; Fri, 26 Sep 2003 18:46:48 -0300 (ADT) Received: (qmail 26685 invoked by uid 65534); 26 Sep 2003 21:46:45 -0000 Received: from dsl-082-082-165-247.arcor-ip.net (EHLO dsl-082-082-165-247.arcor-ip.net) (82.82.165.247) by mail.gmx.net (mp005) with SMTP; 26 Sep 2003 23:46:45 +0200 X-Authenticated: #495269 Date: Fri, 26 Sep 2003 23:46:20 +0200 (CEST) From: Peter Eisentraut X-X-Sender: peter@peter.localdomain To: Tom Lane Cc: Stephan Szabo , "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-Reply-To: <27119.1064608662@sss.pgh.pa.us> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/453 X-Sequence-Number: 10541 Tom Lane writes: > Peter Eisentraut writes: > > I don't agree with cluttering the compile line with -D_GNU_SOURCE just for > > the case when someone adds additional unsupported compiler flags. > > Like "--with-perl"? The reason that got in there was not to deal with > weird compiler flags, it was to deal with the standard Perl installation > on RHL 8.0. But for that purpose it was sufficient to leave it in linux.h. -- Peter Eisentraut peter_e@gmx.net From tgl@sss.pgh.pa.us Fri Sep 26 21:53:57 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 3F214D1B4E6 for ; Fri, 26 Sep 2003 21:53:57 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 29122-04 for ; Fri, 26 Sep 2003 18:53:48 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id F0424D1B4E1 for ; Fri, 26 Sep 2003 18:53:45 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h8QLrj6c027838; Fri, 26 Sep 2003 17:53:46 -0400 (EDT) To: Peter Eisentraut Cc: Stephan Szabo , "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-reply-to: References: Comments: In-reply-to Peter Eisentraut message dated "Fri, 26 Sep 2003 23:46:20 +0200" Date: Fri, 26 Sep 2003 17:53:45 -0400 Message-ID: <27837.1064613225@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/454 X-Sequence-Number: 10542 Peter Eisentraut writes: > Tom Lane writes: >> Like "--with-perl"? The reason that got in there was not to deal with >> weird compiler flags, it was to deal with the standard Perl installation >> on RHL 8.0. > But for that purpose it was sufficient to leave it in linux.h. But Stephan is right: putting it in the port header creates a serious risk that the effective compilation environment will be different from what configure was probing. It's sheer luck that we've not seen any worse problems than we have. regards, tom lane