Re: MERGE vs REPLACE

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: MERGE vs REPLACE
Дата
Msg-id 200511221852.jAMIqcn26518@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: MERGE vs REPLACE  (Jaime Casanova <systemguards@gmail.com>)
Ответы Re: MERGE vs REPLACE  (Jaime Casanova <systemguards@gmail.com>)
Список pgsql-hackers
Jaime Casanova wrote:
> >
> > And yes merge CAN be used to do REPLACE (oracle uses their dummy table
> > for this, we can use the fact that FROM clause isn't required in postgres).
> >
> 
> the FROM clause is required by default (starting with 8.1) unless you
> change a postgresql.conf parameter.
> 
> and i don't think that idea will have any fan...

No, it is not, try SELECT 1.  Oracle requires SELECT 1 FROM dual.  The
change in 8.1 is that SELECT pg_class.relname no longer works.  You have to
do SELECT relname FROM pg_class.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: tablespaces and non-empty directories
Следующее
От: Jaime Casanova
Дата:
Сообщение: Re: MERGE vs REPLACE