Re: MERGE vs REPLACE

From: Jaime Casanova <systemguards(at)gmail(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Petr Jelinek <pjmodos(at)seznam(dot)cz>, "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: MERGE vs REPLACE
Date: 2005-11-22 18:56:26
Message-ID: c2d9e70e0511221056v3cf9f62s254d7b754af3b351@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 11/22/05, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:
> 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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
> + If your life is a hard drive, | 13 Roberts Road
> + Christ can be your backup. | Newtown Square, Pennsylvania 19073
>

touche...

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim C. Nasby 2005-11-22 20:25:38 Re: Bug in predicate indexes?
Previous Message Bruce Momjian 2005-11-22 18:52:38 Re: MERGE vs REPLACE