Re: effective SELECT from child tables - Mailing list pgsql-hackers

From Greg Stark
Subject Re: effective SELECT from child tables
Date
Msg-id 87ek73b1s0.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: effective SELECT from child tables  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> Here's another interesting case to think about:
> 
>     ALTER TABLE ADD foo integer DEFAULT 1
>     ...
>     ALTER TABLE ALTER foo SET DEFAULT 2
> 
> You'll have to pay the table-traversal cost on one step or the other.

A good point.

I wonder if this could be solved by recording the xid of the ALTER transaction
along with the default value. I imagine that might get complicated quickly
though.

-- 
greg



pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: pgAdmin guru hints
Next
From: "Michael Paesold"
Date:
Subject: Re: Updated documentation for new sequence binding