Re: Me And My Database

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: "Leif B(dot) Kristensen" <leif(at)solumslekt(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Me And My Database
Date: 2006-06-14 10:39:21
Message-ID: 20060614103921.GE4748@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-general

On Wed, Jun 14, 2006 at 11:45:03AM +0200, Leif B. Kristensen wrote:
> On Wednesday 14. June 2006 11:38, Martijn van Oosterhout wrote:
> >Why did you put parenthesis there? It looks like you're making a
> > record within a record. You wouldn't have parenthesis there for a
> > normal select statement, would you?
>
> s**t. When I remove the parentheses, it runs fine.
>
> This is a little contrary to common programmer philosophy, where putting
> in extra parentheses for clarity is considered Good Practice[TM].

Except in cases where it changes the meaning, obviously.

I suppose if the SQL standard had chosen something else for row
constructors (like [] or {}) what you typed would've been a syntax
error rather than being valid.

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Browse pgsql-advocacy by date

  From Date Subject
Next Message Markus Schiltknecht 2006-06-14 14:20:56 Re: postgresql live-cd
Previous Message Leif B. Kristensen 2006-06-14 10:34:29 Re: Me And My Database

Browse pgsql-general by date

  From Date Subject
Next Message Milen Kulev 2006-06-14 11:47:12 Re: Partitioning...
Previous Message Leif B. Kristensen 2006-06-14 10:34:29 Re: Me And My Database