Re: live metadata changes v8.3.4

From: David Fetter <david(at)fetter(dot)org>
To: "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: live metadata changes v8.3.4
Date: 2011-09-28 13:16:50
Message-ID: 20110928131650.GC7090@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Sep 27, 2011 at 01:51:42PM -0700, Gauthier, Dave wrote:
> Hi:
>
> How does one make a metadata change to a DB that's actively being
> used. Specifically, I want to drop a view, drop some columns from a
> table that's used in the view, recreate the view without those
> columns.
>
> In the past, I've resorted to connecting as a super user, running
> "select procpid from pg_stat_activity..." then pg_ctl kill ABRT
> <procpid>. This would create a window where I could get in and make
> the change. But it also created some angry users whos processes got
> killed.

You have the choice between taking those users offline and not doing
the change.

> V8.3.4 on linux.

Upgrade to 8.3.16 immediately, if not sooner. Oh, and start planning
the 9.1 migration, too. December of 2012 is closer than you think. :)

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Fetter 2011-09-28 13:20:04 Re: [Solved] Generic logging system for pre-hstore using plperl triggers
Previous Message Rich Shepard 2011-09-28 13:07:20 Re: Quick-and-Dirty Data Entry with LibreOffice3?