From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
To: pabloa98 <pabloa98@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: is it possible to create partitioned tables using tables from different schemas
Date: Wed, 17 Apr 2019 17:17:46 -0700
Message-ID: <fa8e7504-c59f-6908-1fe9-4eec4dea7c56@aklaver.com> (raw)
In-Reply-To: <20190417225648.GA2004@alvherre.pgsql>
References: <20190417225648.GA2004@alvherre.pgsql>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, alvherre@2ndquadrant.com, pabloa98@gmail.com
Subject: Re: is it possible to create partitioned tables using tables from different schemas
In-Reply-To: <fa8e7504-c59f-6908-1fe9-4eec4dea7c56@aklaver.com>
References: <20190417225648.GA2004@alvherre.pgsql> <fa8e7504-c59f-6908-1fe9-4eec4dea7c56@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox