Re: [GENERAL] psql + autocommit

2004-09-21 Thread Michael Paesold
Greg Sabino Mullane wrote: > real_psql --set AUTOCOMMIT=OFF $@ I have stumbled over this myself: psql is case-sensitive here at the moment, so it must be --set AUTOCOMMIT=off. Best Regards, Michael ---(end of broadcast)--- TIP 8: explain analyze i

Re: [GENERAL] psql + autocommit

2004-09-17 Thread John Sidney-Woollett
Except transparency... John Sidney-Woollett Peter Eisentraut wrote: John Sidney-Woollett wrote: Why not create this file during the "make install", and explicitly set the current/standard default options (for psql) in the $PREFIX/share/psqlrc file? Because it would take up space, computing power,

Re: [GENERAL] psql + autocommit

2004-09-17 Thread Peter Eisentraut
John Sidney-Woollett wrote: > Why not create this file during the "make install", and explicitly > set the current/standard default options (for psql) in the > $PREFIX/share/psqlrc file? Because it would take up space, computing power, and attention without achieving anything. -- Peter Eisentra

Re: [GENERAL] psql + autocommit

2004-09-17 Thread John Sidney-Woollett
Why not create this file during the "make install", and explicitly set the current/standard default options (for psql) in the $PREFIX/share/psqlrc file? If the file is deleted or not found then the current/standard default options would still apply - but atleast the default are there for all to

Re: [GENERAL] psql + autocommit

2004-09-17 Thread Bruce Momjian
Lars Haugseth wrote: > * Michael Paesold: > | Peter Eisentraut wrote: > | > Lars Haugseth wrote: > | > > Version 8.0.0beta2 supports a global configuration file. It's should > | > > be located in '~postgres/etc/pgsql'. > | > > | > That would be pretty useless, since normal users often don't have re

Re: [GENERAL] psql + autocommit

2004-09-17 Thread Lars Haugseth
* Michael Paesold: | Peter Eisentraut wrote: | > Lars Haugseth wrote: | > > Version 8.0.0beta2 supports a global configuration file. It's should | > > be located in '~postgres/etc/pgsql'. | > | > That would be pretty useless, since normal users often don't have read | > access to another user's hom

Re: [GENERAL] psql + autocommit

2004-09-17 Thread Michael Paesold
Peter Eisentraut wrote: > Lars Haugseth wrote: > > Version 8.0.0beta2 supports a global configuration file. It's should > > be located in '~postgres/etc/pgsql'. > > That would be pretty useless, since normal users often don't have read > access to another user's home directory. Further up in th

Re: [GENERAL] psql + autocommit

2004-09-17 Thread Peter Eisentraut
Lars Haugseth wrote: > Version 8.0.0beta2 supports a global configuration file. It's should > be located in '~postgres/etc/pgsql'. That would be pretty useless, since normal users often don't have read access to another user's home directory. -- Peter Eisentraut http://developer.postgresql.org/

Re: [GENERAL] psql + autocommit

2004-09-16 Thread John Sidney-Woollett
Thanks to you and Bruce for the info. I'll live with modifying the ~/.psqlrc file until we move to version 8. John Sidney-Woollett Lars Haugseth wrote: * Peter Eisentraut: | John Sidney-Woollett wrote: | > Any ideas why the global file doesn't work? | | There is no support for a global configuratio

Re: [GENERAL] psql + autocommit

2004-09-16 Thread John Sidney-Woollett
Thanks - I'll live with modifying the ~/.psqlrc file until we move to version 8. John Sidney-Woollett Lars Haugseth wrote: * Peter Eisentraut: | John Sidney-Woollett wrote: | > Any ideas why the global file doesn't work? | | There is no support for a global configuration file at this time. I | s

Re: [GENERAL] psql + autocommit

2004-09-16 Thread Lars Haugseth
* Peter Eisentraut: | John Sidney-Woollett wrote: | > Any ideas why the global file doesn't work? | | There is no support for a global configuration file at this time. I | suggested that you *implement* it. Version 8.0.0beta2 supports a global configuration file. It's should be located in '~post

Re: [GENERAL] psql + autocommit

2004-09-15 Thread tmp
> To ease any pain, what about a configuration setting for the build > script for postgres (and psql) which changes the default behaviour for > the AUTOCOMMIT setting. I really agree on the need for a posibility to set autocommit = off *regardless* of the client: On a system using both psql, php

Re: [GENERAL] psql + autocommit

2004-09-15 Thread John Sidney-Woollett
I can see this is going nowhere fast! :) I'd like to see a global setting that I could change, not one on a user by user basis... I'd also like a message in the Welcome banner telling me what the current AUTOCOMMIT setting is... John Sidney-Woollett Peter Eisentraut wrote: John Sidney-Woollett

Re: [GENERAL] psql + autocommit

2004-09-15 Thread Peter Eisentraut
John Sidney-Woollett wrote: > If a config switch was available for the build process that could > preserve the "old" behavior - it wouldn't really pose a problem for > existing users migrating their systems to v8 provided they set the > switch appropriately. Such a switch exists: you put \set AUTO

Re: [GENERAL] psql + autocommit

2004-09-15 Thread John Sidney-Woollett
I agree with you 100% about this - whoever it won't affect new users starting with v8 (including many new Windows users), and those migrating from other dbs (like Oracle). If a config switch was available for the build process that could preserve the "old" behavior - it wouldn't really pose a p

Re: [GENERAL] psql + autocommit

2004-09-15 Thread Peter Eisentraut
John Sidney-Woollett wrote: > It will break any newly compiled version of psql expecting to work to > the old behaviour. It won't affect anyone using an older version of > postgres or psql (ie pre version 8). Of course there are no backward compatibility issues when you keep using the old version

Re: [GENERAL] psql + autocommit

2004-09-15 Thread John Sidney-Woollett
No it won't! It will break any newly compiled version of psql expecting to work to the old behaviour. It won't affect anyone using an older version of postgres or psql (ie pre version 8). To ease any pain, what about a configuration setting for the build script for postgres (and psql) which cha

Re: [GENERAL] psql + autocommit

2004-09-15 Thread Tom Lane
John Sidney-Woollett <[EMAIL PROTECTED]> writes: > With the advent of postgres v8, would it be possible to change the > default behaviour of psql from AUTOCOMMIT=ON to AUTOCOMMIT=OFF ? If that's what you want, set it in your ~/.psqlrc. regards, tom lane -

Re: [GENERAL] psql + autocommit

2004-09-15 Thread Peter Eisentraut
John Sidney-Woollett wrote: > With the advent of postgres v8, would it be possible to change the > default behaviour of psql from AUTOCOMMIT=ON to AUTOCOMMIT=OFF ? Absolutely not. This will break every psql use in existence. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---

[GENERAL] psql + autocommit

2004-09-15 Thread John Sidney-Woollett
With the advent of postgres v8, would it be possible to change the default behaviour of psql from AUTOCOMMIT=ON to AUTOCOMMIT=OFF ? Although this might break backward compatibility, it might be acceptable on the basis that v8 is such a major release. Also adding a new command line parameter to