Re: insert record in remote database - Mailing list pgsql-sql

From Osvaldo Kussama
Subject Re: insert record in remote database
Date
Msg-id AANLkTind02t2vMu6zCSE=bBib_w1R=hAxcqgJOVZsina@mail.gmail.com
Whole thread Raw
In response to insert record in remote database  (Maruti Nandan <tejas.tank.mca@gmail.com>)
List pgsql-sql
2010/10/22 Maruti Nandan <tejas.tank.mca@gmail.com>:
> have any one idea !!!
>
> postgres db, to insert record in a table of other database through
> function!!!
>
>
> u see the dblink , but it just use for select statement i want to
>
>
> when trigger fire i want to insert record in other db
> --


From manual:

dblink_exec executes a command (that is, any SQL statement that
doesn't return rows) in a remote database.
http://www.postgresql.org/docs/current/interactive/contrib-dblink-exec.html
"sql: The SQL command that you wish to execute in the remote database,
for example insert into foo values(0,'a','{"a0","b0","c0"}'). "

Osvaldo


pgsql-sql by date:

Previous
From: Maruti Nandan
Date:
Subject: insert record in remote database
Next
From: Osvaldo Kussama
Date:
Subject: Re: insert record in remote database