Received: from erm1.u-strasbg.fr (erm1.u-strasbg.fr [130.79.74.61]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4L8QYA01567 for ; Mon, 21 May 2001 04:26:35 -0400 (EDT) (envelope-from bboett@erm1.u-strasbg.fr) Received: by erm1.u-strasbg.fr (Postfix, from userid 501) id E0A8A5E36; Mon, 21 May 2001 10:33:33 +0200 (CEST) Date: Mon, 21 May 2001 10:33:33 +0200 To: pgsql-sql@postgresql.org Subject: how to check presence of a function and set permissions? Message-ID: <20010521103333.N15377@erm1.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline User-Agent: Mutt/1.3.15i From: bboett@erm1.u-strasbg.fr (Bruno Boettcher) X-Archive-Number: 200105/221 X-Sequence-Number: 3038 hello! since i am now destroying and recreating my functions at every request (due to the fact that pl/psql can't cope with dynamic table names, and i didn't found anywhere a decent doc about pl/perl) i have now the problem, that a psql error is displayed if i try to drop a nonexistent function, or sometimes when i created the function through psql an ownership error, giving a permission denied to drop that function... so is there a way to check before dropping if a function exists, and is it possible to ovverride the ownership of a function? do the same GRANT mechanisms aply to functions (at least the syntax has to change a bit...)? -- ciao bboett ============================================================== bboett@earthling.net http://inforezo.u-strasbg.fr/~bboett http://erm1.u-strasbg.fr/~bboett =============================================================== the total amount of intelligence on earth is constant. human population is growing....