Re: [HACKERS] v7.2.4 bundled ...

2003-01-30 Thread Rod Taylor
  bash-2.05b$ bison --version
  bison (GNU Bison) 1.75

 ISTM that the eve of what'll probably be our last dot-release for 7.2
 is not the time to drop a new bison into its toolchain.

Agreed -- but it's worth mentioning in the 7.2.4 release notes that an
earlier Bison version is required.

-- 
Rod Taylor [EMAIL PROTECTED]

PGP Key: http://www.rbt.ca/rbtpub.asc



signature.asc
Description: This is a digitally signed message part


Re: [HACKERS] v7.2.4 bundled ...

2003-01-30 Thread Tom Lane
Kevin Brown [EMAIL PROTECTED] writes:
 I'm attaching a patch for 7.2.4's parser/gram.y that fixes all of
 bison 1.75's complaints.

But parser/gram.y is not the only .y file in the distribution.  To call
ourselves 1.75-safe, we'd have to go through this same exercise for
all of 'em:

$ find REL7_2 -name '*.y'
REL7_2/pgsql/contrib/cube/cubeparse.y
REL7_2/pgsql/contrib/seg/segparse.y
REL7_2/pgsql/src/backend/bootstrap/bootparse.y
REL7_2/pgsql/src/backend/parser/gram.y
REL7_2/pgsql/src/interfaces/ecpg/preproc/preproc.y
REL7_2/pgsql/src/pl/plpgsql/src/gram.y
$

And on top of that, 1.75 isn't the current bison release anymore; the
one that is current has changed the spelling of syntax error messages,
which means that the regression tests will fail (and perhaps clients
that are looking for syntax errors, too).  We have agreed how to fix
this in HEAD, but not actually done it yet --- shall we put that
not-even-written-let-alone-tested code into 7.2.4 as well?

I think it's best to leave well enough alone.  The tarball ships with
working bison output files anyway, so all of this really only matters
to people trying to build 7.2.* from a CVS pull.

regards, tom lane

---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]



Re: [HACKERS] v7.2.4 bundled ...

2003-01-30 Thread Marc G. Fournier

7.2.x isn't bison 1.75 compatible ... and most likely never will be ...



On Wed, 29 Jan 2003, Rod Taylor wrote:

I jsut bundled up v7.2.4 with all the recent security fixes ... can a
  few ppl do some regression tests and report back before I announce in the
  morning?  I did a configure and build here and all looks fine, but some
  confirmations is always nice ;)

 Updated to tag REL7_2_4 on FreeBSD 4.7 and cannot compile it.  gram.y
 errors complaining: invalid character: ','.

 bash-2.05b$ bison --version
 bison (GNU Bison) 1.75
 Written by Robert Corbett and Richard Stallman.



 --
 Rod Taylor [EMAIL PROTECTED]

 PGP Key: http://www.rbt.ca/rbtpub.asc


---(end of broadcast)---
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



Re: [PATCHES] [HACKERS] v7.2.4 bundled ...

2003-01-30 Thread Kevin Brown
Tom Lane wrote:
 Kevin Brown [EMAIL PROTECTED] writes:
  I'm attaching a patch for 7.2.4's parser/gram.y that fixes all of
  bison 1.75's complaints.
 
 But parser/gram.y is not the only .y file in the distribution.  To call
 ourselves 1.75-safe, we'd have to go through this same exercise for
 all of 'em:
 
 $ find REL7_2 -name '*.y'
 REL7_2/pgsql/contrib/cube/cubeparse.y
 REL7_2/pgsql/contrib/seg/segparse.y
 REL7_2/pgsql/src/backend/bootstrap/bootparse.y
 REL7_2/pgsql/src/backend/parser/gram.y
 REL7_2/pgsql/src/interfaces/ecpg/preproc/preproc.y
 REL7_2/pgsql/src/pl/plpgsql/src/gram.y
 $

I'll be happy to go through the same process for those files.

 And on top of that, 1.75 isn't the current bison release anymore; the
 one that is current has changed the spelling of syntax error messages,
 which means that the regression tests will fail (and perhaps clients
 that are looking for syntax errors, too).  We have agreed how to fix
 this in HEAD, but not actually done it yet --- shall we put that
 not-even-written-let-alone-tested code into 7.2.4 as well?

I assume you're referring to the use of error numbers here.  Yes, I
agree that *that* code shouldn't go into 7.2.4.

 I think it's best to leave well enough alone.  The tarball ships with
 working bison output files anyway, so all of this really only matters
 to people trying to build 7.2.* from a CVS pull.

Okay, fair enough, but if we intend to continue to maintain 7.2.*,
shouldn't we at least fix the .y files?  We can hack configure to fail
if it detects a bison later than 1.75, or we can simply put something
in the release notes that says if the regressions fail on error
detection it may mean that an incompatible bison was used.


-- 
Kevin Brown   [EMAIL PROTECTED]

---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly



Re: [PATCHES] [HACKERS] v7.2.4 bundled ...

2003-01-30 Thread Tom Lane
Kevin Brown [EMAIL PROTECTED] writes:
 I think it's best to leave well enough alone.  The tarball ships with
 working bison output files anyway, so all of this really only matters
 to people trying to build 7.2.* from a CVS pull.

 Okay, fair enough, but if we intend to continue to maintain 7.2.*,
 shouldn't we at least fix the .y files?

What for?  If you've bought the assumption that we aren't going to port
7.2's grammar forward indefinitely, why shouldn't we say it stops with
bison 1.35 rather than 1.75?  1.75 and later are not widely deployed
anyway, as yet.  But the more compelling point is *it does not matter*
to our customers, and only barely to us.  No one but a very few
developers will ever again build the .y output files for 7.2.* (even
assuming that there are more 7.2.* releases, which I doubt).  Doesn't
seem worth expending any effort on, to me.  We have other, more
productive things to do ...

regards, tom lane

---(end of broadcast)---
TIP 2: you can get off all lists at once with the unregister command
(send unregister YourEmailAddressHere to [EMAIL PROTECTED])



Re: [PATCHES] [HACKERS] v7.2.4 bundled ...

2003-01-30 Thread Kevin Brown
Tom Lane wrote:
 Kevin Brown [EMAIL PROTECTED] writes:
  I think it's best to leave well enough alone.  The tarball ships with
  working bison output files anyway, so all of this really only matters
  to people trying to build 7.2.* from a CVS pull.
 
  Okay, fair enough, but if we intend to continue to maintain 7.2.*,
  shouldn't we at least fix the .y files?
 
 What for?  If you've bought the assumption that we aren't going to port
 7.2's grammar forward indefinitely, why shouldn't we say it stops with
 bison 1.35 rather than 1.75?  1.75 and later are not widely deployed
 anyway, as yet.

Okay, fair enough.  I'll take your word for this (no idea how to
determine how widely bison 1.75 and later are deployed).

 But the more compelling point is *it does not matter*
 to our customers, and only barely to us.  No one but a very few
 developers will ever again build the .y output files for 7.2.* (even
 assuming that there are more 7.2.* releases, which I doubt).  Doesn't
 seem worth expending any effort on, to me.  We have other, more
 productive things to do ...

Agreed.  I wasn't aware, previously, that our source distributions
shipped with .c files generated from the .y files.


That said, if the parser's gram.y file is anything to go by, the fixes
to make it work with bison 1.75 are trivial, so if you change your
mind I'll be happy to do the work.


-- 
Kevin Brown   [EMAIL PROTECTED]

---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly



[HACKERS] v7.2.4 bundled ...

2003-01-29 Thread Marc G. Fournier

Morning all ...

  I jsut bundled up v7.2.4 with all the recent security fixes ... can a
few ppl do some regression tests and report back before I announce in the
morning?  I did a configure and build here and all looks fine, but some
confirmations is always nice ;)



---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster



Re: [HACKERS] v7.2.4 bundled ...

2003-01-29 Thread Rod Taylor
   I jsut bundled up v7.2.4 with all the recent security fixes ... can a
 few ppl do some regression tests and report back before I announce in the
 morning?  I did a configure and build here and all looks fine, but some
 confirmations is always nice ;)

Updated to tag REL7_2_4 on FreeBSD 4.7 and cannot compile it.  gram.y
errors complaining: invalid character: ','.

bash-2.05b$ bison --version
bison (GNU Bison) 1.75
Written by Robert Corbett and Richard Stallman.



-- 
Rod Taylor [EMAIL PROTECTED]

PGP Key: http://www.rbt.ca/rbtpub.asc



signature.asc
Description: This is a digitally signed message part


Re: [HACKERS] v7.2.4 bundled ...

2003-01-29 Thread Tom Lane
Rod Taylor [EMAIL PROTECTED] writes:
 Updated to tag REL7_2_4 on FreeBSD 4.7 and cannot compile it.  gram.y
 errors complaining: invalid character: ','.

 bash-2.05b$ bison --version
 bison (GNU Bison) 1.75

We just had that discussion on pgcore.  The 7.2 grammar was developed
against bison 1.28; it works with warnings against bison 1.35, but bison
1.75 just flat rejects it (not for any significant reason, but just
because they decided to get anal-retentive about whether they'd allow
commas in keyword lists).

We could update the 7.2 grammar and compile it with the latest bison,
but we were worried about whether we might introduce any subtle problems
if we did.  The 7.2 branch has received zero testing with bison 1.75.

ISTM that the eve of what'll probably be our last dot-release for 7.2
is not the time to drop a new bison into its toolchain.

regards, tom lane

---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]



Re: [HACKERS] v7.2.4 bundled ...

2003-01-29 Thread Tom Lane
Marc G. Fournier [EMAIL PROTECTED] writes:
   I jsut bundled up v7.2.4 with all the recent security fixes ... can a
 few ppl do some regression tests and report back before I announce in the
 morning?  I did a configure and build here and all looks fine, but some
 confirmations is always nice ;)

Passes regression tests here (HPUX 10.20)...

regards, tom lane

---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly



Re: [HACKERS] v7.2.4 bundled ...

2003-01-29 Thread Christopher Kings-Lynne
Where do I get it from?

I can't see it on any of the FTP sites...

Chris

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Marc G. Fournier
 Sent: Thursday, 30 January 2003 10:00 AM
 To: [EMAIL PROTECTED]
 Subject: [HACKERS] v7.2.4 bundled ...
 
 
 
 Morning all ...
 
   I jsut bundled up v7.2.4 with all the recent security fixes ... can a
 few ppl do some regression tests and report back before I announce in the
 morning?  I did a configure and build here and all looks fine, but some
 confirmations is always nice ;)
 
 
 
 ---(end of broadcast)---
 TIP 4: Don't 'kill -9' the postmaster
 


---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster



Re: [HACKERS] v7.2.4 bundled ...

2003-01-29 Thread Magnus Naeslund(f)
Redhat 6.2
Linux gserver1 2.4.19-pre6 #4 Thu Apr 11 07:17:39 CEST 2002 alpha
unknown
All 79 tests passed.

Magnus


---(end of broadcast)---
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



Re: [HACKERS] v7.2.4 bundled ...

2003-01-29 Thread Tom Lane
Christopher Kings-Lynne [EMAIL PROTECTED] writes:
 Where do I get it from?
 I can't see it on any of the FTP sites...

Not all the mirrors have updated yet, but I see it at
ftp://ftp9.us.postgresql.org/pub/mirrors/postgresql/source/v7.2.4/
for one ...

regards, tom lane

---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly



Re: [HACKERS] v7.2.4 bundled ...

2003-01-29 Thread Kevin Brown
Tom Lane wrote:
 Rod Taylor [EMAIL PROTECTED] writes:
  Updated to tag REL7_2_4 on FreeBSD 4.7 and cannot compile it.  gram.y
  errors complaining: invalid character: ','.
 
  bash-2.05b$ bison --version
  bison (GNU Bison) 1.75
 
 We just had that discussion on pgcore.  The 7.2 grammar was developed
 against bison 1.28; it works with warnings against bison 1.35, but bison
 1.75 just flat rejects it (not for any significant reason, but just
 because they decided to get anal-retentive about whether they'd allow
 commas in keyword lists).
 
 We could update the 7.2 grammar and compile it with the latest bison,
 but we were worried about whether we might introduce any subtle problems
 if we did.  The 7.2 branch has received zero testing with bison 1.75.
 
 ISTM that the eve of what'll probably be our last dot-release for 7.2
 is not the time to drop a new bison into its toolchain.

For what it's worth, I've fixed all the errors in the 7.2.4 gram.y
file that bison 1.75 complained and then re-ran bison 1.35 against it,
then compared that with the output that the same version of bison
generated from the original grammar file.  The only differences were
references to line numbers -- everything else is identical.

So if any problems occur from using bison 1.75, they will be either
due to bugs in that version of bison or due to our dependence on a bug
in earlier versions, or something like that.

I'm attaching a patch for 7.2.4's parser/gram.y that fixes all of
bison 1.75's complaints.  Since the output of bison 1.35 is
essentially identical between the original and this, I don't see any
reason we shouldn't include the fix in the 7.2.4 release, as long as
we include a warning in the release notes that we haven't done any
real testing with a build against bison 1.75 (or later).


-- 
Kevin Brown   [EMAIL PROTECTED]

--- gram.y.orig Wed Jan 29 22:39:31 2003
+++ gram.y  Wed Jan 29 22:43:33 2003
@@ -129,33 +129,33 @@
InsertStmt  *istmt;
 }
 
-%type node   stmt,
-   AlterGroupStmt, AlterSchemaStmt, AlterTableStmt, AlterUserStmt,
-   AnalyzeStmt,
-   ClosePortalStmt, ClusterStmt, CommentStmt, ConstraintsSetStmt,
-   CopyStmt, CreateAsStmt, CreateGroupStmt, CreatePLangStmt,
-   CreateSchemaStmt, CreateSeqStmt, CreateStmt, CreateTrigStmt,
-   CreateUserStmt, CreatedbStmt, CursorStmt, DefineStmt, DeleteStmt,
-   DropGroupStmt, DropPLangStmt, DropSchemaStmt, DropStmt, DropTrigStmt,
-   DropUserStmt, DropdbStmt, ExplainStmt, FetchStmt,
-   GrantStmt, IndexStmt, InsertStmt, ListenStmt, LoadStmt, LockStmt,
-   NotifyStmt, OptimizableStmt, ProcedureStmt, ReindexStmt,
-   RemoveAggrStmt, RemoveFuncStmt, RemoveOperStmt,
-   RenameStmt, RevokeStmt, RuleActionStmt, RuleActionStmtOrEmpty,
-   RuleStmt, SelectStmt, TransactionStmt, TruncateStmt,
-   UnlistenStmt, UpdateStmt, VacuumStmt, VariableResetStmt,
-   VariableSetStmt, VariableShowStmt, ViewStmt, CheckPointStmt
+%type node   stmt
+   AlterGroupStmt AlterSchemaStmt AlterTableStmt AlterUserStmt
+   AnalyzeStmt
+   ClosePortalStmt ClusterStmt CommentStmt ConstraintsSetStmt
+   CopyStmt CreateAsStmt CreateGroupStmt CreatePLangStmt
+   CreateSchemaStmt CreateSeqStmt CreateStmt CreateTrigStmt
+   CreateUserStmt CreatedbStmt CursorStmt DefineStmt DeleteStmt
+   DropGroupStmt DropPLangStmt DropSchemaStmt DropStmt DropTrigStmt
+   DropUserStmt DropdbStmt ExplainStmt FetchStmt
+   GrantStmt IndexStmt InsertStmt ListenStmt LoadStmt LockStmt
+   NotifyStmt OptimizableStmt ProcedureStmt ReindexStmt
+   RemoveAggrStmt RemoveFuncStmt RemoveOperStmt
+   RenameStmt RevokeStmt RuleActionStmt RuleActionStmtOrEmpty
+   RuleStmt SelectStmt TransactionStmt TruncateStmt
+   UnlistenStmt UpdateStmt VacuumStmt VariableResetStmt
+   VariableSetStmt VariableShowStmt ViewStmt CheckPointStmt
 
-%type node   select_no_parens, select_with_parens, select_clause,
+%type node   select_no_parens select_with_parens select_clause
simple_select
 
 %type nodealter_column_default
 %type ivaldrop_behavior
 
-%type list   createdb_opt_list, createdb_opt_item
+%type list   createdb_opt_list createdb_opt_item
 
-%type ival   opt_lock, lock_type
-%type booleanopt_force, opt_or_replace
+%type ival   opt_lock lock_type
+%type booleanopt_force opt_or_replace
 
 %type list   user_list
 
@@ -165,7 +165,7 @@
 %type list   OptUserList
 %type defelt OptUserElem
 
-%type booleanTriggerActionTime, TriggerForSpec, opt_trusted, opt_procedural
+%type booleanTriggerActionTime TriggerForSpec opt_trusted opt_procedural
 %type str