From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Karel Zak - Zakkr <zakkr(at)zf(dot)jcu(dot)cz> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | Re: [HACKERS] INSERT in 7.0 |
Date: | 1999-12-16 14:35:45 |
Message-ID: | 24381.945354945@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Karel Zak - Zakkr <zakkr(at)zf(dot)jcu(dot)cz> writes:
> What is changed on INSERT/max() in v7.0? (CVS - today).
> template1=> INSERT INTO pg_group VALUES ('abg_root', max(grosysid)+1, '{}');
> ERROR: attribute 'grosysid' not found
That's the way it should work, AFAICS. VALUES() isn't supposed to
contain anything except constant expressions. Perhaps what you are
after would be more properly expressed as
INSERT INTO pg_group SELECT 'abg_root', max(grosysid)+1, '{}' FROM pg_group;
6.5 may have accepted the other, but it was an artifact of extremely
broken code...
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 1999-12-16 14:40:39 | Re: [HACKERS] Postmaster options, process spawning, logging, etc. |
Previous Message | Tom Lane | 1999-12-16 14:25:51 | Re: [HACKERS] initdb / pg_version |