From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Jon Nelson <jnelson+pgsql@jamponi.net>
To: pgsql-bugs@postgresql.org
Subject: Re: [PERFORM] typoed column name, but postgres didn't grump
Date: Tue, 02 Nov 2010 16:34:25 -0500
Message-ID: <4CD03D9102000025000371C6@gw.wicourts.gov> (raw)
In-Reply-To: <AANLkTiksQQzuG7EaNvXVTv0w0G11DZeSoSR5HjN3mWfA@mail.gmail.com>
References: <AANLkTimYMA8D2h4-jHK5vD032jWwig1iJmW6uF-3i=Bx@mail.gmail.com>
<4480.1288374498@sss.pgh.pa.us>
<4CCACE6E0200002500036F95@gw.wicourts.gov>
<6240.1288379246@sss.pgh.pa.us>
<AANLkTiksQQzuG7EaNvXVTv0w0G11DZeSoSR5HjN3mWfA@mail.gmail.com>
Jon Nelson <jnelson+pgsql@jamponi.net> wrote:
> If I saw this behavior ( a.b also meaning b(a) ) in another SQL
> engine, I would consider it a thoroughly unintuitive wart
I think the main reason it has been kept is the converse -- if you
define a function "b" which takes record "a" as its only parameter,
you have effectively created a "generated column" on any relation
using record type "a". Kind of. It won't show up in the display of
the relation's structure or in a SELECT *, and you can't use it in
an unqualified reference; but you can use a.b to reference it, which
can be convenient.
It seems to me that this would be most useful in combination with
the inheritance model of PostgreSQL (when used for modeling object
hierarchies rather than partitioning).
-Kevin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, jnelson+pgsql@jamponi.net, pgsql-bugs@postgresql.org
Subject: Re: [PERFORM] typoed column name, but postgres didn't grump
In-Reply-To: <4CD03D9102000025000371C6@gw.wicourts.gov>
References: <AANLkTimYMA8D2h4-jHK5vD032jWwig1iJmW6uF-3i=Bx@mail.gmail.com> <4480.1288374498@sss.pgh.pa.us> <4CCACE6E0200002500036F95@gw.wicourts.gov> <6240.1288379246@sss.pgh.pa.us> <AANLkTiksQQzuG7EaNvXVTv0w0G11DZeSoSR5HjN3mWfA@mail.gmail.com> <4CD03D9102000025000371C6@gw.wicourts.gov>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox