Re: is it possible to create partitioned tables using tables fromdifferent schemas - Mailing list pgsql-general

From Adrian Klaver
Subject Re: is it possible to create partitioned tables using tables fromdifferent schemas
Date
Msg-id fa8e7504-c59f-6908-1fe9-4eec4dea7c56@aklaver.com
Whole thread Raw
In response to Re: is it possible to create partitioned tables using tables fromdifferent schemas  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-general
On 4/17/19 3:56 PM, Alvaro Herrera wrote:
> Note that unless you regularly query for only-manually-inserted or
> only-automatically-inserted data, this will be useless and will make
> queries more expensive, with no upside.

Well the OP's use case is:

"I would like to store in that table manually generated information. 
Since those rows are inserted by hand, they will be lost when the table 
will be reimported."

This got me to thinking an INSERT trigger would work also.

> 
> Generally speaking, it's not a problem to put partitions in different
> schemas.
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: is it possible to create partitioned tables using tables fromdifferent schemas
Next
From: Julie Nishimura
Date:
Subject: ERROR: operator class "gin__int_ops" does not exist for accessmethod "gin"