Skip site navigation (1) Skip section navigation (2)

dblink: enable parameters

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: dblink: enable parameters
Date: 2011-11-22 04:55:17
Message-ID: CAFj8pRBj58C0Lr5Xkcp7DTtiLHBSvgDVu7ZoqUZ+74dAbG=GpA@mail.gmail.com (view raw)
Hello

I know so dblink is "deprecated" interface - but it has necessary
functionality still -  it support a writable statements.

Very simple enhancing should be enable params to query - it's analogy
to USING clause in EXECUTE statement.

Regards

Pavel Stehule

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: dblink: enable parameters
Date: 2011-11-22 11:09:18
Message-ID: 4ECB82DE.4010209@enterprisedb.com (view raw)
On 22.11.2011 06:55, Pavel Stehule wrote:
> I know so dblink is "deprecated" interface - but it has necessary
> functionality still -  it support a writable statements.

It would be nice to add support for SQL/MED "passthrough mode"... That 
would allow you to do any queries/updates to foreign servers. It 
wouldn't sound very difficult at first glance, though I'm not sure what 
it would mean to our parser, for example.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

From: Itagaki Takahiro <itagaki(dot)takahiro(at)gmail(dot)com>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: dblink: enable parameters
Date: 2011-11-22 12:22:07
Message-ID: CAJW2+qdBegO9Ut30T_06UXn+-gMb4STYhNV=Rex8Tv1fxyNzJw@mail.gmail.com (view raw)
On Tue, Nov 22, 2011 at 20:09, Heikki Linnakangas
<heikki(dot)linnakangas(at)enterprisedb(dot)com> wrote:
> It would be nice to add support for SQL/MED "passthrough mode"... That would
> allow you to do any queries/updates to foreign servers. It wouldn't sound
> very difficult at first glance, though I'm not sure what it would mean to
> our parser, for example.

I think passthrough mode is almost impossible or has very limited usage
because we cannot pass query texts that our parser doesn't accept;
we cannot support foreign-table-specific queries.

> On 22.11.2011 06:55, Pavel Stehule wrote:
>> I know so dblink is "deprecated" interface - but it has necessary
>> functionality still -  it support a writable statements.

So, "dblink on FDW connection" seems to be a possible solution.
We pass a query as a form of a plain text.

-- 
Itagaki Takahiro

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Itagaki Takahiro <itagaki(dot)takahiro(at)gmail(dot)com>
Cc: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: dblink: enable parameters
Date: 2011-11-23 06:44:27
Message-ID: CAFj8pRA-BuvN+6eukNKxfnwMcw-BkDz-nKby2Xz0tzxiFqCbYQ@mail.gmail.com (view raw)
>> On 22.11.2011 06:55, Pavel Stehule wrote:
>>> I know so dblink is "deprecated" interface - but it has necessary
>>> functionality still -  it support a writable statements.
>
> So, "dblink on FDW connection" seems to be a possible solution.
> We pass a query as a form of a plain text.
>
> --

it is interesting idea

Pavel

> Itagaki Takahiro
>


Privacy Policy | About PostgreSQL
Copyright © 1996-2013 The PostgreSQL Global Development Group