From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: ALTER OBJECT any_name SET SCHEMA name |
Date: | 2010-11-21 18:03:17 |
Message-ID: | 20101121180317.GB7424@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sun, Nov 21, 2010 at 07:53:57AM -0500, Robert Haas wrote:
> On Sat, Nov 20, 2010 at 11:23 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> > Ah, nuts. I see now there's a v7. Never mind...
>
> OK. I looked at the right version, now. Hopefully.
>
> It seems we have no regression tests at all for any of the existing
> SET SCHEMA commands. This seems like a good time to correct that
> oversight, and also add some for the new commands you're adding here.
> (It might be helpful to submit the regression tests for the existing
> commands as a separate patch.) Also, you're missing psql tab
> completion support, which would be nice to have.
>
> In CheckSetNamespace() you have the message 'already exists in schema'
> there where the existing, similar checks say 'is already in schema',
> which is a bit confusing. But that code looks useful, and in fact I
> think we should use it for the existing object types also to avoid
> code duplication.
Should this really error out? It's just a NOOP, so perhaps a NOTICE
would be more appropriate.
Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
From | Date | Subject | |
---|---|---|---|
Next Message | David Fetter | 2010-11-21 18:07:54 | Re: Tab completion for view triggers in psql |
Previous Message | David E. Wheeler | 2010-11-21 17:40:07 | Re: patch: Add JSON datatype to PostgreSQL (GSoC, WIP) |