pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joonas Makkonen <joonas.makkonen@infosto.fi>
To: pgsql-interfaces@postgresql.org
Subject: Connect within a db function
Date: Mon, 14 Aug 2000 20:33:04 +0300
Message-ID: <01aa01c00615$b4626100$e62689c2@infosto.fi> (raw)

Is it possible to connect to another db in a function called from sql.

ie. SELECT foobar(args) FROM dummy;

where foobar is a function that makes a connection to another db and does a
few things. The problem is that when ever the function makes a connection
the backend dies violently. Is this a bug or is such behaviour forbidden?
The function is written in C. When tested in a separate program it works
just fine.

    Joonas Makkonen

Attachments:

  smime.p7s (application/x-pkcs7-signature, 2.8K) download

Message-ID: <01aa01c00615$b4626100$e62689c2@infosto.fi>
Permalink:  ../01aa01c00615$b4626100$e62689c2@infosto.fi/
Also on:    postgresql.org/message-id/01aa01c00615$b4626100$e62689c2@infosto.fi

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: joonas.makkonen@infosto.fi
  Subject: Re: Connect within a db function
  In-Reply-To: <01aa01c00615$b4626100$e62689c2@infosto.fi>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox