From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Greg Stark <stark(at)mit(dot)edu>, Thom Brown <thom(at)linux(dot)com>, Kohei KaiGai <kaigai(at)kaigai(dot)gr(dot)jp>, Daniel Farina <daniel(at)heroku(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [v9.3] writable foreign tables |
Date: | 2013-03-15 15:00:38 |
Message-ID: | 5336.1363359638@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> On Mon, Mar 11, 2013 at 3:06 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Greg Stark <stark(at)mit(dot)edu> writes:
>>> It feels a bit like unpredictable magic to have "DEFAULT" mean one
>>> thing and omitted columns mean something else.
>> Agreed. The current code behaves that way, but I think that's
>> indisputably a bug not behavior we want to keep.
> I'm not entirely convinced that's a bug. Both behaviors seem useful,
> and there has to be some way to specify each one.
I would love it if we had a way to provide remote-default
functionality. But per SQL spec these should produce the same results:
INSERT INTO t(f1, f2) VALUES(1, DEFAULT);
INSERT INTO t(f1) VALUES(1);
If PG fails to work like that, it's not a feature, it's a bug.
Where the default is coming from is not a justification for failing
the POLA like that.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2013-03-15 15:36:00 | Re: Materialized view assertion failure in HEAD |
Previous Message | Pavel Stehule | 2013-03-15 14:19:14 | Re: lock AccessShareLock on object 0/1260/0 is already held |