Re: ALTER OBJECT any_name SET SCHEMA name

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: ALTER OBJECT any_name SET SCHEMA name
Дата
Msg-id 20101121180317.GB7424@fetter.org
обсуждение исходный текст
Ответ на Re: ALTER OBJECT any_name SET SCHEMA name  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: ALTER OBJECT any_name SET SCHEMA name  (Robert Haas <robertmhaas@gmail.com>)
Список 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@gmail.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@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "David E. Wheeler"
Дата:
Сообщение: Re: patch: Add JSON datatype to PostgreSQL (GSoC, WIP)
Следующее
От: David Fetter
Дата:
Сообщение: Re: Tab completion for view triggers in psql