Re: [HACKERS] Foreign Tables as Partitions

2013-07-22 Thread Robert Haas
On Fri, Jul 19, 2013 at 1:46 PM, David Fetter wrote: >> This functionality was actually present in the original submission >> for foreign tables. I ripped it out before commit because I didn't >> think all of the interactions with other commands had been >> adequately considered. But I think the

Re: [HACKERS] Foreign Tables as Partitions

2013-07-19 Thread David Fetter
On Fri, Jul 19, 2013 at 11:41:14AM -0400, Robert Haas wrote: > On Thu, Jul 18, 2013 at 8:56 PM, David Fetter wrote: > > Please find attached a PoC patch to implement $subject. > > > > So far, with a lot of help from Andrew Gierth, I've roughed out an > > implementation which allows you to ALTER FO

Re: [HACKERS] Foreign Tables as Partitions

2013-07-19 Thread Robert Haas
On Thu, Jul 18, 2013 at 8:56 PM, David Fetter wrote: > Please find attached a PoC patch to implement $subject. > > So far, with a lot of help from Andrew Gierth, I've roughed out an > implementation which allows you to ALTER FOREIGN TABLE so it inherits > a local table. > > TBD: CREATE FOREIGN TAB

[HACKERS] Foreign Tables as Partitions

2013-07-18 Thread David Fetter
Folks, Please find attached a PoC patch to implement $subject. So far, with a lot of help from Andrew Gierth, I've roughed out an implementation which allows you to ALTER FOREIGN TABLE so it inherits a local table. TBD: CREATE FOREIGN TABLE ... INHERITS ..., docs, regression testing, etc., etc.