vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| > -----Original Message----- > From: pgsql-patches-owner@postgresql.org > [mailto > Sent: 05 May 2006 12:22 > To: Tom Lane > Cc: Martijn van Oosterhout; pgsql-patches@postgresql.org > Subject: Re: [PATCHES] [PATCH] Have configure complain about > unknown options > > As PostgreSQL tree is not set up that way, I think for > clarity sake it would be better to give explicit errors for > unknown options. > I'm not in a position to argue about why autoconf works this way, but I can say that I'd like to see unsupported options rejected if there is a sensible way to do it. I've been bitten more than once by mistakenly using --enable-foo rather than --with-foo, or just plain mis-typing. Regards, Dave. ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match |
| |||
| I am thinking we would need an option at the start like --strict that would throw an error for any later invalid options. --------------------------------------------------------------------------- Dave Page wrote: > > > > -----Original Message----- > > From: pgsql-patches-owner@postgresql.org > > [mailto > > Sent: 05 May 2006 12:22 > > To: Tom Lane > > Cc: Martijn van Oosterhout; pgsql-patches@postgresql.org > > Subject: Re: [PATCHES] [PATCH] Have configure complain about > > unknown options > > > > As PostgreSQL tree is not set up that way, I think for > > clarity sake it would be better to give explicit errors for > > unknown options. > > > > I'm not in a position to argue about why autoconf works this way, but I > can say that I'd like to see unsupported options rejected if there is a > sensible way to do it. I've been bitten more than once by mistakenly > using --enable-foo rather than --with-foo, or just plain mis-typing. > > Regards, Dave. > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match > -- Bruce Momjian http://candle.pha.pa.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. + ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend |
| |||
| On Fri, May 05, 2006 at 08:34:36AM -0400, Bruce Momjian wrote: > > I am thinking we would need an option at the start like --strict that > would throw an error for any later invalid options. Well, --strict would be tricky, if it's possible. My reading of the autoconf code doesn't indicate a means of doing adding abitrary options. But something like --enable-strict-options would be fairly straight forward. Problem being, if you mistype that option, it'll seem to work even when it isn't Maybe an evironment variable: PGAC_STRICT Have a nice day, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > From each according to his ability. To each according to his ability to litigate. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFEW02HIB7bNG8LQkwRAoeUAJ456xmK0sZh6DgSKbtRJ/uqz6BuxgCfUiDr Aj+GhchxkG0Qc+x0UYxLVFw= =NR2g -----END PGP SIGNATURE----- |
| |||
| Martijn van Oosterhout wrote: > On Fri, May 05, 2006 at 08:34:36AM -0400, Bruce Momjian wrote: > > > > I am thinking we would need an option at the start like --strict that > > would throw an error for any later invalid options. > > Well, --strict would be tricky, if it's possible. My reading of the > autoconf code doesn't indicate a means of doing adding abitrary > options. But something like --enable-strict-options would be fairly > straight forward. Problem being, if you mistype that option, it'll seem > to work even when it isn't I've been bitten by this in the past as well. I'd vote for applying the patch as-is, no "strict mode" necessary (because, as you say, it's easy to get it wrong). Can the Debian build script be fixed? Does the RPM spec have the same problem? -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend |
| |||
| On Fri, May 05, 2006 at 09:13:54AM -0400, Alvaro Herrera wrote: > > Well, --strict would be tricky, if it's possible. My reading of the > > autoconf code doesn't indicate a means of doing adding abitrary > > options. But something like --enable-strict-options would be fairly > > straight forward. Problem being, if you mistype that option, it'll seem > > to work even when it isn't > > I've been bitten by this in the past as well. I'd vote for applying the > patch as-is, no "strict mode" necessary (because, as you say, it's easy > to get it wrong). How about the reverse, an option to relax the checking. --disable-strict-options for example? > Can the Debian build script be fixed? Does the RPM spec have the same > problem? Looking at the source it may be an artifact of the CDBS build system used to build the package. It knows that the autotools are in use and appends it automatically. FWIW, I'd just add a line to the case statement accepting the enable_maintainer_mode variable since it's harmless and we're trying to catch typos here, not actual options that don't apply in our case. Have a nice day, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > From each according to his ability. To each according to his ability to litigate. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFEW1RuIB7bNG8LQkwRAiJrAJ9I+uayKf6V3O1BfXqKcV aDmHkRmgCcC8Ku cp3Ew2sd4AOfHUz7kp6Sn7M= =wsuj -----END PGP SIGNATURE----- |
| |||
| I am worried if we change the default behavior that build systems will fail, but fail after our release when they go to package, and we will not get feedback until to late. --------------------------------------------------------------------------- Martijn van Oosterhout wrote: -- Start of PGP signed section. > On Fri, May 05, 2006 at 09:13:54AM -0400, Alvaro Herrera wrote: > > > Well, --strict would be tricky, if it's possible. My reading of the > > > autoconf code doesn't indicate a means of doing adding abitrary > > > options. But something like --enable-strict-options would be fairly > > > straight forward. Problem being, if you mistype that option, it'll seem > > > to work even when it isn't > > > > I've been bitten by this in the past as well. I'd vote for applying the > > patch as-is, no "strict mode" necessary (because, as you say, it's easy > > to get it wrong). > > How about the reverse, an option to relax the checking. > --disable-strict-options for example? > > > Can the Debian build script be fixed? Does the RPM spec have the same > > problem? > > Looking at the source it may be an artifact of the CDBS build system > used to build the package. It knows that the autotools are in use and > appends it automatically. FWIW, I'd just add a line to the case > statement accepting the enable_maintainer_mode variable since it's > harmless and we're trying to catch typos here, not actual options that > don't apply in our case. > > Have a nice day, > -- > Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > > From each according to his ability. To each according to his ability to litigate. -- End of PGP section, PGP failed! -- Bruce Momjian http://candle.pha.pa.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. + ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend |
| |||
| On Fri, May 05, 2006 at 12:28:48PM -0400, Bruce Momjian wrote: > > I am worried if we change the default behavior that build systems will > fail, but fail after our release when they go to package, and we will > not get feedback until to late. I guess there are a number of ways to deal with this: 1. Provide an escape option they can add 2. Package systems can usually apply patches prior to compiling, they can always remove the offending line if they like. 3. Try and get feedback from them now rather than wait enable_maintainer_mode is a kind of special case. It's a flag that disables a number of braindead things done by automake and libtool and probably others. autoconf OTOH doesn't know about it. So, independant of the options above, I think it should be accepted without warning. Have a nice day, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > From each according to his ability. To each according to his ability to litigate. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFEW5RKIB7bNG8LQkwRAgojAJ92qGpe63ACLB0TMDW1Bz +baqri4gCeIojX ehkmtPFw5Jy9NFtOmfQtO8Q= =39XL -----END PGP SIGNATURE----- |
| |||
| Am Freitag, 5. Mai 2006 20:07 schrieb Martijn van Oosterhout: > 1. Provide an escape option they can add > 2. Package systems can usually apply patches prior to compiling, they can > always remove the offending line if they like. > 3. Try and get feedback from them now rather than wait My feedback is this: You are going to enter a world of pain. If you are worried about mistyping options, I recommend setting up a shell alias. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org |
| |||
| On 5/9/06, Peter Eisentraut <peter_e@gmx.net> wrote: > Am Freitag, 5. Mai 2006 20:07 schrieb Martijn van Oosterhout: > > 1. Provide an escape option they can add > > 2. Package systems can usually apply patches prior to compiling, they can > > always remove the offending line if they like. > > 3. Try and get feedback from them now rather than wait > > My feedback is this: You are going to enter a world of pain. Seems that way. Especially if the non-PGAC options won't be handled automatically. Some projects have solved the problem different way - by printing out the summary of most important options at the end of configure: PostgreSQL version X.X.X OpenSSL: no Integer datatime: yes Python: yes Perl: yes So at the end of configure the user can visually confirm his expectations without needing to parse the noise from full configure output. Maybe this would be better solution. -- marko ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq |
| ||||
| On Tue, May 09, 2006 at 10:37:43AM +0200, Peter Eisentraut wrote: > Am Freitag, 5. Mai 2006 20:07 schrieb Martijn van Oosterhout: > > 1. Provide an escape option they can add > > 2. Package systems can usually apply patches prior to compiling, they can > > always remove the offending line if they like. > > 3. Try and get feedback from them now rather than wait > > My feedback is this: You are going to enter a world of pain. Can you explain why? Unknown options don't do anything, so having users remove them seems like a good move. Have a nice day, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > From each according to his ability. To each according to his ability to litigate. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFEYFkbIB7bNG8LQkwRAiMmAJ9ZzgDv2hcHuRZ8G8cEQQ B0tr/NBACfau8C 7YkEcLmOOxJNuatzs3HcVi4= =wbB8 -----END PGP SIGNATURE----- |
| Thread Tools | |
| Display Modes | |
|
|