Re: [SQL] [HACKERS] [GENERAL] getting the oid for a new tuple in a BEFORE

2001-09-04 Thread Bruce Momjian
> > we need to control database changes within BEFORE triggers. > > There is no problem with triggers called by update, but there is > > a problem with triggers called by insert. > > > > We strongly need to know the oid of a newly inserted tuple. > > In this case, we use tg_newtuple of the Trigge

Re: [SQL] 2 tables, joins and same name...

2001-09-04 Thread Jeff Eckermann
I learned SQL from Sam's "Teach Yourself SQL in 21 Days", and am happy to recommend it. Which book is "best" is very subjective and situation dependent; all I can say is that this one did the job for me. Pros: clearly written; knowledgable authors; good coverage Cons: all due to space limitations

Re: [SQL] GRANT ALL ON TO GROUP failure

2001-09-04 Thread Henshall, Stuart - WCP
You need to user is a reserved word so you need to quote it (ie: "user" rather than user) whenever you reference it.Does group reader exist? If it does then it might be a case issue as presumably you must have quoted user user to create it which also preserves case, so if you did the same

Re: [SQL] Need help in composing PostgreSQL query

2001-09-04 Thread Oliver Elphick
"Vladimir V. Zolotych" wrote: >Hi > >Please help me compose the query in PostgreSQL. >Using PostgreSQL 7.1.2. > >Suppose relations A and B have columns: > {X1, X2, ..., Xm, Y1, Y2, ..., Yn} >and > {Y1, Y2, ..., Yn} >Attributes Y1, Y2, ..., Yn are common for both relations >