Re: ALTER TABLE ... IF EXISTS feature?
От | Tom Lane |
---|---|
Тема | Re: ALTER TABLE ... IF EXISTS feature? |
Дата | |
Msg-id | 24809.1288971854@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: ALTER TABLE ... IF EXISTS feature? (Robert Haas <robertmhaas@gmail.com>) |
Ответы |
Re: ALTER TABLE ... IF EXISTS feature?
|
Список | pgsql-hackers |
Robert Haas <robertmhaas@gmail.com> writes: > On Nov 5, 2010, at 10:49 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> I think you've phrased the question backwards. Why *should* we support >> that large increment of complexity? The use-cases seem pretty few and >> far between. > Obviously we have different definitions of "a large increment in complexity". Well, (1) the proposal affects a large number of commands (2) in some cases the correct behavior isn't obvious (I note Daniel's example had *two* IF EXISTS options in one command...) (3) it raises the bar of expectation for every future ALTER command That spells "large maintenance burden" to me, even if any one command would be relatively simple to fix. And we haven't even reached the question of whether pg_dump could use these things usefully; I suspect that the bottom-line issue there might be something else entirely. regards, tom lane
В списке pgsql-hackers по дате отправления: