Re: [SQL] [GENERAL] CURRENT_TIMESTAMP

2002-09-29 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Now, they are _not_ saying the statement can't have the same time as > other statements in the transaction, but I don't see why they would > explicitly have to state that. Allow me to turn that around: given that they clearly do NOT state that, how can

Re: [SQL] [GENERAL] CURRENT_TIMESTAMP

2002-09-29 Thread Tom Lane
Josh Berkus <[EMAIL PROTECTED]> writes: > Are we still planning on putting the three different versions of now() on the > TODO? I.e., > now('transaction'), > now('statement'), and > now('immediate') > With now() = now('transaction')? I have no objection to doing that. What seems to be contentio

Re: [SQL] [GENERAL] arrays

2002-09-29 Thread Mike Sosteric
On Sun, 29 Sep 2002, Bruce Momjian wrote: Apologies in advance if there is a more appropriate list. We are currently developing a database to host some complicated, XMl layered data. We have chosen postgres because of its ability to store multidimensional arrays. We feel that using these will a

Re: [SQL] [GENERAL] CURRENT_TIMESTAMP

2002-09-29 Thread Bruce Momjian
Josh Berkus wrote: > Bruce, > > > If we change CURRENT_TIMESTAMP to statement time, I don't think we need > > now(""), but if we don't change it, I think we do --- somehow we should > > allow users to access statement time. > > I'd argue that we need the 3 kinds of now() regardless, just to limi

Re: [SQL] [GENERAL] CURRENT_TIMESTAMP

2002-09-29 Thread Josh Berkus
Bruce, > If we change CURRENT_TIMESTAMP to statement time, I don't think we need > now(""), but if we don't change it, I think we do --- somehow we should > allow users to access statement time. I'd argue that we need the 3 kinds of now() regardless, just to limit user confusion. If we set th

Re: [SQL] [GENERAL] CURRENT_TIMESTAMP

2002-09-29 Thread Bruce Momjian
Josh Berkus wrote: > > Tom, > > > I'd be happier with the whole thing if anyone had exhibited a convincing > > use-case for statement timestamp. So far I've not seen any actual > > examples of situations that are not better served by either transaction > > timestamp or true current time. And t

[SQL] Proposal for Clean-up of Conversion Functions

2002-09-29 Thread Josh Berkus
Postgres Folks, As long as we're talking about the ToDo list, I'd like to make some simple proposals regarding Postgres' conversion functions. 1) Addition of remaing to_char functions: We should add to_char functions for the following datatypes: to_char(interval, 'format string') (I believe t

Re: [SQL] [GENERAL] CURRENT_TIMESTAMP

2002-09-29 Thread Josh Berkus
Tom, > I'd be happier with the whole thing if anyone had exhibited a convincing > use-case for statement timestamp. So far I've not seen any actual > examples of situations that are not better served by either transaction > timestamp or true current time. And the spec is perfectly clear that >