Re: Compiere ERP and SQL quirks

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Marek Mosiewicz <marekmosiewicz(at)poczta(dot)onet(dot)pl>
Cc: Merlin Moncure <merlin(dot)moncure(at)rcsonline(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Compiere ERP and SQL quirks
Date: 2005-01-07 18:23:00
Message-ID: 41DED384.8060704@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Marek Mosiewicz wrote:
> Upps sorry now found it on TODO list.
>
> I was not aware that it is SQL92 standard.
>
> Is it difficult to implement ?
> Simplest approach would be
> to rewrite it to UPDATE t1 set col1 = (select cola ...), col2 = (select
> colb....) ....
> but it would result in not optimal plan.

Doesn't something like

UPDATE t1 SET col1=cola, col2=colb
FROM t1 JOIN anothertable ot ON t1.id=ot.id
WHERE ...

Work the way you'd like it? I'd expect this syntax to be as widely
portable and performant.

Regards,
Andreas

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Wong 2005-01-07 18:29:23 Re: [Testperf-general] pg_autovacuum w/ dbt2
Previous Message Oleg Bartunov 2005-01-07 18:13:54 Re: [pgsql-ru-general] Final call for translation updates