Re: Dropping a column on parent table doesn't propagate to children?

From: Vincent Veyron <vv(dot)lists(at)wanadoo(dot)fr>
To: Moshe Jacobson <moshe(at)neadwerx(dot)com>
Cc: Sergey Konoplev <sergey(dot)konoplev(at)postgresql-consulting(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Dropping a column on parent table doesn't propagate to children?
Date: 2012-08-29 19:06:52
Message-ID: 1346267212.3584.9.camel@asus-1001PX.home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Le mercredi 29 août 2012 à 13:05 -0400, Moshe Jacobson a écrit :
> On Wed, Aug 29, 2012 at 12:11 PM, Vincent Veyron <vv(dot)lists(at)wanadoo(dot)fr>
> wrote:
> Le mercredi 29 août 2012 à 09:48 -0400, Moshe Jacobson a
> écrit :
>
> > Questions:
> > 1. If I want the inherited table's columns indexed the same
> way as the
> > parent, must I create new indexes on the inherited table?
> > 2. If I move the inherited table to a new schema, will its
> indexes
> > also be moved into the new schema?
> > 3. Any difference in behavior regarding check constraints,
> schemas,
> > indexes, etc that I should be aware of between inherited
> tables
> > created with pure inheritance as opposed to "like
> <parent_table>"?
> >
>
>
> The 'LIKE' section of the documentation for CREATE TABLE
> explains it :
>
> http://www.postgresql.org/docs/9.1/static/sql-createtable.html
>
>
> I don't see the answers to #1 and #2 there...
>

#1
Quote :

Any indexes on the original table will not be created on the new table,
unless the INCLUDING INDEXES clause is specified.

#2
I don't use schemas personnally, but if you do, I suggest you test and
see what happens

> --
> Moshe Jacobson
> Nead Werx, Inc. | Senior Systems Engineer
> 2323 Cumberland Parkway, Suite 201 | Atlanta, GA 30339
> moshe(at)neadwerx(dot)com | www.neadwerx.com
>

--
Vincent Veyron
http://marica.fr/
Gestion informatique des sinistres d'assurances et des dossiers contentieux pour le service juridique

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dmitriy Igrishin 2012-08-29 19:14:04 Re: C locale versus en_US.UTF8. (Was: String comparision in PostgreSQL)
Previous Message Scott Marlowe 2012-08-29 18:52:50 Re: C locale versus en_US.UTF8. (Was: String comparision in PostgreSQL)