From: | Daniel Farina <daniel(at)heroku(dot)com> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | Dave Page <dpage(at)pgadmin(dot)org>, Atri Sharma <atri(dot)jiit(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Regarding column reordering project for GSoc 2012 |
Date: | 2012-03-18 01:00:08 |
Message-ID: | CAAZKuFaNUtH0Ovn+5ZcysSw7DJCn_QH2tVKUOOPbYwF=yGuZ8A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sat, Mar 17, 2012 at 1:48 PM, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
> Mine too. We don't want a column ordering that's different for everyone.
> That's a recipe for mass confusion. We want to be able to mutate the
> ordering for everyone, and for everyone to see the same ordering. That means
> it MUST be done purely in the backend (as indeed all ALTER TABLE commands
> must be.)
I am in agreement. This state would have to live in the session
between client and server, so that semantic analysis could do the
right thing by looking at the environment on the backend, too. Life
is already really difficult because of session state: consider
connection poolers, which are both common and have subtle caveats that
are close to being completely silent if one uses the wrong construct.
The only reason people get away with this in practice is because most
of them do not use constructs like temp tables and dblink in
conjunction with pooling, but if they did, the prospect of what could
happen when sessions get crossed is a nightmare (clearly, I'd like a
way to treat this, because session state is also useful, but that's
not the here and now...)
Reordering attributes totally backends-side, though, would be a
wonderful feature, and already has plenty of work just to realize the
physical/logical decoupling in the backend, so I have a lot of
enthusiasm for the project in general.
--
fdr
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Farina | 2012-03-18 01:13:41 | Re: Gsoc2012 Idea --- Social Network database schema |
Previous Message | Jeff Janes | 2012-03-18 00:57:39 | Re: Memory usage during sorting |