Re: feature request - Mailing list pgsql-hackers

From Robert Haas
Subject Re: feature request
Date
Msg-id 603c8f071002251422m60c08146ubb18efe69deae937@mail.gmail.com
Whole thread Raw
In response to Re: feature request  ("Omar Bettin" <o.bettin@informaticaindustriale.it>)
Responses Re: feature request
List pgsql-hackers
On Thu, Feb 25, 2010 at 5:17 PM, Omar Bettin
<o.bettin@informaticaindustriale.it> wrote:
> ...could be
> STORE WHERE [condition] FROM [table] INTO [database]

That still doesn't work, because a PostgreSQL backend doesn't have any
obvious way to access another database.  You'd need to use dblink or
something.  Eventually (but not any time soon) it will probably be
possible to do things like this, which would work for moving data
between tables in the same database:

WITH x AS (DELETE FROM ... RETURNING ...) INSERT INTO ... (...) SELECT
... FROM x

Doing anything with some OTHER database is going to require a lot more
infrastructure.

...Robert


pgsql-hackers by date:

Previous
From: "Omar Bettin"
Date:
Subject: Re: feature request
Next
From: "Omar Bettin"
Date:
Subject: Re: feature request