Re: system command in dblink?

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: AI Rumman <rummandba(at)gmail(dot)com>
Cc: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: system command in dblink?
Date: 2011-06-14 16:20:21
Message-ID: BANLkTi=sQbQx+SNVAb-2=H7i1CzzAVJt6Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jun 14, 2011 at 1:17 AM, AI Rumman <rummandba(at)gmail(dot)com> wrote:
> Is it possible to execute system commands in dblink connections?
>
> I need to execute \i /tmp/test.sh in a remote connection from my psql client
> prompt.
> I connected with the remote db using dblink_connect.
>
> select dblink_connect('conn_1', 'dbname=newdb');

the '\i' syntax only means anything to psql, so no. This might help
though: http://plsh.projects.postgresql.org/

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2011-06-14 16:36:30 Re: random backend crashes - how to debug ( Is crash dump handler released ? )
Previous Message Tom Lane 2011-06-14 15:51:59 Re: Executing \i of psql command using libpq library