X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9BABF52D42 for ; Fri, 25 Feb 2005 19:40:02 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 91793-08 for ; Fri, 25 Feb 2005 19:39:57 +0000 (GMT) Received: from mx-00.sil.at (mx-00.sil.at [62.116.68.196]) by svr1.postgresql.org (Postfix) with ESMTP id 89648563A6 for ; Fri, 25 Feb 2005 19:39:54 +0000 (GMT) Received: (qmail-ldap/ctrl 31100 invoked from network); 25 Feb 2005 08:33:33 -0000 Received: from unknown (HELO jupiter.sonorys.at) ([213.235.243.42]) (envelope-sender ) by mx-00.sil.at (qmail-ldap-1.03) with SMTP for ; 25 Feb 2005 08:33:33 -0000 Received: from neptun.sonorys.at (neptun.sonorys.at [172.24.1.17]) by jupiter.sonorys.at (8.11.7+Sun/8.11.7) with ESMTP id j1P8Xus13738 for ; Fri, 25 Feb 2005 09:34:00 +0100 (MET) Received: by neptun.sonorys.at with Internet Mail Service (5.5.2653.19) id ; Fri, 25 Feb 2005 09:33:33 +0100 Message-ID: From: =?ISO-8859-1?Q?K=D6PFERL_Robert?= To: pgsql-sql@postgresql.org Subject: Re: Junk queries with variables? Date: Fri, 25 Feb 2005 09:33:32 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200502/323 X-Sequence-Number: 20433 PL/pgSQL is not part of template1 =3D if you create a new database. Thus you can use for functions just pure SQL or C. To get pgSQL I did = that: CREATE OR REPLACE FUNCTION plpgsql_call_handler() RETURNS language_handler AS '$libdir/plpgsql', 'plpgsql_call_handler' LANGUAGE 'c' VOLATILE; CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler; C:\> -----Original Message----- C:\> From: Steve - DND [mailto:postgres@digitalnothing.com] C:\> Sent: Donnerstag, 24. Februar 2005 18:41 C:\> To: K=D6PFERL Robert; pgsql-sql@postgresql.org C:\> Subject: RE: Junk queries with variables? C:\>=20 C:\>=20 C:\> > C:\> > In pgadmins SQL-window SQL is the 'language' of choice. Or it is C:\> > rather the C:\> > only language. Thus if you intend to program plTk or=20 C:\> PL/pgSQL, there's no C:\> > way around defining a function. C:\> > C:\> > (At first you have to define a new language in your schema) C:\>=20 C:\> I'm a little confused, is there no way around this, or are=20 C:\> you saying I need C:\> to use CREATE LANGUAGE to define a new language to use?=20 C:\> Currently the only C:\> language I have for the DB is plpgsql. C:\>=20 C:\> Thanks, C:\> Steve C:\>=20 C:\>=20