Re: DUPS in tables columns ERROR: column ". . . " does not exist - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: DUPS in tables columns ERROR: column ". . . " does not exist
Date
Msg-id 20080830173915.GB11907@svana.org
Whole thread Raw
In response to Re: DUPS in tables columns ERROR: column ". . . " does not exist  ("Albretch Mueller" <lbrtchx@gmail.com>)
List pgsql-general
On Sat, Aug 30, 2008 at 01:36:25PM -0400, Albretch Mueller wrote:
> > The system is smart enough to only do the count() once.
> ~
>  But not smart enough to make a variable you declare point to that
> internal variable so that things are clearer/ easier ;-)

The SQL standard has pretty clear rules about what variables can be
referenced from where, and this is one of those places (the rationale
is probably in there too).

Have a nice day
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

Attachment

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: ERROR: relation . . . does not exist
Next
From: Christophe
Date:
Subject: Re: ERROR: relation . . . does not exist