From: | Manfred Koizar <mkoi-pg(at)aon(dot)at> |
---|---|
To: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Aaron Held <aaron(at)MetroNY(dot)com>, Roberto Mello <rmello(at)cc(dot)usu(dot)edu>, Neil Conway <neilc(at)samurai(dot)com>, pgsql-sql(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org |
Subject: | Re: [SQL] CURRENT_TIMESTAMP |
Date: | 2002-09-24 08:33:51 |
Message-ID: | sb70pugqu6ifglqe9lv886u3sna328g0ks@4ax.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers pgsql-sql |
On Tue, 24 Sep 2002 11:19:12 +1000, Martijn van Oosterhout
<kleptog(at)svana(dot)org> wrote:
>Well, what I would suggest is that when you wrap several statements into a
>single transaction with begin/commit, the whole lot could be considered a
>single statement (since they form an atomic transaction so in a sense they
>are all executed simultaneously).
The people who wrote the specification knew about transactions. If
they had wanted what you describe above, they would have written:
3) If a transaction generally contains more than one reference
to one or more <datetime value function>s, then all such ref-
erences are effectively evaluated simultaneously. The time of
evaluation of the <datetime value function> during the execution
of the transaction is implementation-dependent.
But they wrote "SQL-statement", not "transaction".
>And hence Postgresql is perfectly compliant.
I'm not so sure.
>The current definition is, I would say, the most useful definition. Can you
>give an example where your definition would be more useful?
I did not write the standard, I'm only reading it. I have no problem
with an implementation that deviates from the standard "because we
know better". But we should users warn about this fact and not tell
them it is compliant.
Servus
Manfred
From | Date | Subject | |
---|---|---|---|
Next Message | Martijn van Oosterhout | 2002-09-24 09:02:52 | Re: State of Replication? |
Previous Message | Jeroen Olthof | 2002-09-24 07:45:14 | database abstraction -> functions |
From | Date | Subject | |
---|---|---|---|
Next Message | Manfred Koizar | 2002-09-24 09:16:20 | Re: [GENERAL] CURRENT_TIMESTAMP |
Previous Message | Vince Vielhaber | 2002-09-24 07:59:33 | Re: Web site |
From | Date | Subject | |
---|---|---|---|
Next Message | Manfred Koizar | 2002-09-24 09:16:20 | Re: [GENERAL] CURRENT_TIMESTAMP |
Previous Message | Jeroen Olthof | 2002-09-24 07:45:14 | database abstraction -> functions |