Re: insert record in remote database

From: Osvaldo Kussama <osvaldo(dot)kussama(at)gmail(dot)com>
To: Maruti Nandan <tejas(dot)tank(dot)mca(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: insert record in remote database
Date: 2010-10-23 22:07:17
Message-ID: AANLkTind02t2vMu6zCSE=bBib_w1R=hAxcqgJOVZsina@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

2010/10/22 Maruti Nandan <tejas(dot)tank(dot)mca(at)gmail(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Osvaldo Kussama 2010-10-24 12:52:40 Re: insert record in remote database
Previous Message Maruti Nandan 2010-10-22 11:41:12 insert record in remote database