Re: plpgsql and Schemas

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Rod Taylor <rbt(at)zort(dot)ca>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: plpgsql and Schemas
Date: 2002-07-15 22:55:02
Message-ID: Pine.LNX.4.44.0207160036220.2259-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rod Taylor writes:

> I've been running a few functions within schema's. It's annoying that
> everything needs to be qualified as it doesn't allow the functions to be
> moved very easily.

> Would it be appropriate for the function to have it's own schema as
> pre-pended onto the user path while in the users function?

The SQL standard has rules on how the effective schema path during a
function execution is determined. In a nutshell, it allows you to specify
the path as an attribute of the containing schema. E.g.,

CREATE SCHEMA foo PATH here, there;

I haven't thought this through, but you might want to think about it.

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2002-07-15 22:56:22 OT: O'Reilly OSCon gatherings
Previous Message Bruce Momjian 2002-07-15 22:54:42 Future of src/utils