VALUES() evaluation order

From: Steve Atkins <steve(at)blighty(dot)com>
To: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: VALUES() evaluation order
Date: 2013-01-13 22:19:25
Message-ID: 5D5660F3-58EB-493B-91BB-27E7FB4DCE5A@blighty.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is the order in which the expressions in a VALUES() clause defined?

I'm doing this: INSERT INTO foo (a, b) VALUES (nextval('bar'), currval('bar'))

It works fine, but I'm wondering whether it's guaranteed to work or whether I'm relying on an artifact of the implementation.

Cheers,
Steve

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2013-01-13 22:36:42 Re: VALUES() evaluation order
Previous Message Scott Ribe 2013-01-13 22:18:26 Re: 9.2 upgrade glitch with search_path