Re: psql feature thought

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Glaesemann <grzm(at)seespotcode(dot)net>
Cc: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql feature thought
Date: 2006-05-16 05:17:32
Message-ID: 6296.1147756652@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Michael Glaesemann <grzm(at)seespotcode(dot)net> writes:
> What use case are you envisioning? Just saving ... *counts ... 14
> keystrokes in this case? (I'm not saying there *isn't* a use case. I
> just don't see a big benefit here.)

Quite aside from the compatibility and how-useful-is-it-really
arguments, I think this'd be a bad idea in the abstract. SQL is not one
of those languages that assigns semantic significance to the shape of
whitespace [1]. We should NOT introduce any such concept into psql,
because it'd fundamentally break the lexical structure of the language.
To take just one example of the difficulties you'd get into, consider

select 1; select
2; select 3;

How many transactions is that exactly? And on what grounds are you
deciding?

(No, I don't like python. Why do you ask? ;-))

regards, tom lane

[1] Mostly. There's the infamous continued-string-literal construct...

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2006-05-16 05:30:33 Re: psql feature thought
Previous Message Michael Glaesemann 2006-05-16 04:59:55 Re: psql feature thought