From: | "Thurstan R(dot) McDougle" <trmcdougle(at)my-deja(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: MAX(xmin) |
Date: | 2001-08-28 10:55:34 |
Message-ID: | 3B8B78A6.150DFA2@my-deja.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I suspect you are missing the GROUP BY part of aggregate SELECT
statements. (MAX is an aggregate function like SUM)
e.g. SELECT MAX(xmin) from userstable GROUP BY whatever
"zammon(at)libero(dot)it" wrote:
>
> Hi all,
>
> I'm trying to use the xmin column to use it as a versioning row to check
> if the row was modified by
> other users while I edit it.
> I need to select max(xmin) of a group of rows but pg get me an error.
> Someone can give me some tips how to create a funcion MAX(xmin)?
> Thank you
> Jose
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
--
This is the identity that I use for NewsGroups. Email to
this will just sit there. If you wish to email me replace
the domain with knightpiesold . co . uk (no spaces).
From | Date | Subject | |
---|---|---|---|
Next Message | Denis A. Doroshenko | 2001-08-28 11:18:22 | Re: MySQL's (false?) claims... (was: Re: PL/java?) |
Previous Message | Bhuvaneswari | 2001-08-28 09:43:14 | Regarding Vacuumdb |