Re: what does ONLY do - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: what does ONLY do
Date
Msg-id 20050218191259.I39081@megazone.bigpanda.com
Whole thread Raw
In response to what does ONLY do  (Bret Hughes <bhughes@elevating.com>)
Responses Re: what does ONLY do
List pgsql-sql
On Fri, 18 Feb 2005, Bret Hughes wrote:

> I can't seem to find an explanation of what adding ONLY does for an sql
> statement  for instance :
>
> ALTER TABLE [ONLY] ADD COLUMN ...
>
> or what ever.  Does anyone have a pointer to docs on this.  I am simply
> curious since there is obviously something I am missing.

Using the ALTER TABLE page as an example...

name
   The name (possibly schema-qualified) of an existing table to alter. If
ONLY is specified, only that table is altered. If ONLY is not specified,
the table and all its descendant tables (if any) are updated. * can be
appended to the table name to indicate that descendant tables are to be
altered, but in the current version, this is the default behavior. (In
releases before 7.1, ONLY was the default behavior. The default can be
altered by changing the configuration parameter sql_inheritance.)


pgsql-sql by date:

Previous
From: Bret Hughes
Date:
Subject: what does ONLY do
Next
From: Bret Hughes
Date:
Subject: Re: what does ONLY do