Re: [GENERAL] psql \e command

2008-06-04 Thread Volkan YAZICI
On Wed, 04 Jun 2008, Klint Gore <[EMAIL PROTECTED]> writes: > postgres=# create table bar (foo int); > CREATE TABLE > postgres=# \e > ERROR: relation "bar" already exists > postgres=# Not exactly like that, consider placing a "\c new_copy" line to your script file. >> \ef regex - Edit fun

Re: [GENERAL] psql \e command

2008-06-04 Thread Klint Gore
Volkan YAZICI wrote: 2. It would be really neat to be able to issue \et regex - Edit table. (Create script of table will get dumped.) \et+ regex - Edit table with dependents. (With create script of INDEXes, triggers, etc.) How do you intend to use it? postgre

[GENERAL] psql \e command

2008-06-04 Thread Volkan YAZICI
Hi, I have two feature proposals for psql: 1. After executing some set of commands from a file via "\e foo.sql", pressing C-p or Up brings executed commands, instead of "\e foo.sql". Shouldn't psql be bringing "\e foo.sql"? 2. It would be really neat to be able to issue \et regex -

[GENERAL] psql -E is not working in 7.4.2 like 7.3.4

2004-05-21 Thread Durai
Hello All, I built the latest postgresql 7.4.2 in HPUX PA. The command "psql -E ", is not give give the output like in 7.3.4. In Postgresql 7.3.4, it gives the following output: $ echo "select * from db5;" | psql -E test * QUERY ** BEGIN; SELECT usesuper FROM pg_catalog.pg_user

[GENERAL] psql -E option is not working in 7.4.2 like 7.3.4

2004-05-20 Thread Durai raj
Hello All, I built the latest postgresql 7.4.2 in HPUX PA. The command "psql -E ", is not give the output like in 7.3.4. In Postgresql 7.3.4, it gives the following output: $ echo "select * from db5;" | psql -E test * QUERY ** BEGIN; SELECT usesuper FROM pg_catalog.pg_user WHER

Re: [GENERAL] psql -e

2003-07-30 Thread Bruce Momjian
I assume this is the fflush you mentioned. Patch attached and applied. --- Tom Lane wrote: > Peter Eisentraut <[EMAIL PROTECTED]> writes: > > Rajesh Kumar Mallah writes: > >> The echo feature of psql echos the query after i

Re: [GENERAL] psql -e

2003-07-28 Thread Tom Lane
[EMAIL PROTECTED] writes: >> Hmm, a little late here, but why not just unbuffer stdout, or are there >> reasons to preserve some buffering? > Would that resolve the interlaced output issues with readline? I doubt it, but you could try it to see ... regards, tom lane

Re: [GENERAL] psql -e

2003-07-28 Thread nolan
> [EMAIL PROTECTED] writes: > >> Hmm, a little late here, but why not just unbuffer stdout, or are there > >> reasons to preserve some buffering? > > > Would that resolve the interlaced output issues with readline? > > I doubt it, but you could try it to see ... I am more inclined to go with the

Re: [GENERAL] psql -e

2003-07-24 Thread Dennis Gearon
In fact, this kind of development, with a test for all code to see if it is using any unwanted features of the language instead of inhouse objects, functions, and macros would have saved microsoft's butt a long time ago regarding security issues. Each new group of programmers does the exact same th

Re: [GENERAL] psql -e

2003-07-24 Thread Dennis Gearon
A macro for the print, which substitutes: print() fflush() for a bare print is a good idea. And then have a routine that looks for contributions that are mistakenly NOT using the macro. [EMAIL PROTECTED] wrote: The query is printed *before* it is executed, but you might

Re: [GENERAL] psql -e

2003-07-24 Thread nolan
> I think throwing in another fflush or two would count as a bug fix. > Anything more extensive probably has to wait for the 7.5 cycle. Dealing with readline makes it slightly more complicated than that, because there is an intermingling issue with two independent output streams. In addition to a

Re: [GENERAL] psql -e

2003-07-24 Thread Tom Lane
[EMAIL PROTECTED] writes: > Tom, would rewriting the output sections interfere with any changes > you are/were working on in psql? I'm not doing anything with psql ... Peter might be ... > I probably won't have time to work on > this before August 15th at this point, so maybe I should wait until

Re: [GENERAL] psql -e

2003-07-24 Thread nolan
> > The query is printed *before* it is executed, but you might not see it > > because your terminal is not flushing the stdout at the right times. > > thanks , > shud there be a fflush then after that print? > or there is something i can do on the shell itself? I've been looking into the echo fe

Re: [GENERAL] psql -e problem

1999-02-05 Thread Simon Drabble
On Fri, 5 Feb 1999, Bruce Momjian wrote: > Sounds like an OS bug. o...k... Linux is famous for this sort of behaviour, I shoulda guessed. Anyone else with perhaps a more helpful idea? Simon. > > > Just upgraded to 6.4.2 from 6.3.2 and I've got a bit of a problem. > > > > Compiled, inst

Re: [GENERAL] psql -e problem

1999-02-05 Thread Bruce Momjian
Sounds like an OS bug. > Just upgraded to 6.4.2 from 6.3.2 and I've got a bit of a problem. > > Compiled, installed, regressed(?) all went fine. Come to load up the old > datbases, and it appears that \. is not being recognised as end-of-input > in the database dump file (I did a pg_dumpall -z,