Re: AW: [HACKERS] Getting OID in psql of recent insert - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: AW: [HACKERS] Getting OID in psql of recent insert
Date
Msg-id 199911221747.MAA04487@candle.pha.pa.us
Whole thread Raw
In response to AW: [HACKERS] Getting OID in psql of recent insert  (Zeugswetter Andreas SEV <ZeugswetterA@wien.spardat.at>)
List pgsql-hackers
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> 
> > testdb=> \set singlestep on
> > testdb=> \set sql_interpol '#'
> > testdb=> \set foo 'pg_class'
> > testdb=> select * from #foo#;
> 
> This is great, but may I object to the syntax ?
> The standard sql way to use host variables seems to be:
> select * from :foo where id = :id
> 
> There will always be the problem with conflicting operators,
> and this one syntax, already needed by ecpg, it is hard enough.

Agreed.


--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Zeugswetter Andreas SEV
Date:
Subject: AW: [HACKERS] Getting OID in psql of recent insert
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Re: postgres RPM build on Suse linux 6.2