Thread: pl/pgSQL

pl/pgSQL

From
Dave Page
Date:
Hi Jason,

Do you think it would be possible to build PostgreSQL with pl/pgsql for
future Cygwin releases?

Thanks in hoping :-),

Dave.

Re: pl/pgSQL

From
Jason Tishler
Date:
Dave,

On Thu, Jul 05, 2001 at 10:19:44AM +0100, Dave Page wrote:
> Do you think it would be possible to build PostgreSQL with pl/pgsql for
> future Cygwin releases?

Huh?  PL/pgSQL has built OOTB since PostgreSQL 7.0.2 (when I started to
provide Cygwin PostgreSQL patches) and possibly earlier.  Anyway it is
already on your PC:

    $ ls /usr/lib/plpgsql.dll
    /usr/lib/plpgsql.dll

Jason

--
Jason Tishler
Director, Software Engineering       Phone: 732.264.8770 x235
Dot Hill Systems Corp.               Fax:   732.264.8798
82 Bethany Road, Suite 7             Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

Re: pl/pgSQL

From
Jason Tishler
Date:
Dave,

On Thu, Jul 05, 2001 at 03:05:53PM +0100, Dave Page wrote:
> I'll just use createlang...

The above is the solution -- on *all* platforms.

Jason

--
Jason Tishler
Director, Software Engineering       Phone: 732.264.8770 x235
Dot Hill Systems Corp.               Fax:   732.264.8798
82 Bethany Road, Suite 7             Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

RE: pl/pgSQL

From
Dave Page
Date:

> -----Original Message-----
> From: Jason Tishler [mailto:Jason.Tishler@dothill.com]
> Sent: 05 July 2001 14:46
> To: Dave Page
> Cc: 'pgsql-cygwin@postgresql.org'
> Subject: Re: pl/pgSQL
>
>
> Dave,
>
> On Thu, Jul 05, 2001 at 10:19:44AM +0100, Dave Page wrote:
> > Do you think it would be possible to build PostgreSQL with pl/pgsql
> > for future Cygwin releases?
>
> Huh?  PL/pgSQL has built OOTB since PostgreSQL 7.0.2 (when I
> started to provide Cygwin PostgreSQL patches) and possibly
> earlier.  Anyway it is already on your PC:
>
>     $ ls /usr/lib/plpgsql.dll
>     /usr/lib/plpgsql.dll

Hi Jason,

Yes, the DLL is there, but the language is not installed:

template1=# select * from pg_language;
 lanname  | lanispl | lanpltrusted | lanplcallfoid | lancompiler
----------+---------+--------------+---------------+-------------
 internal | f       | f            |             0 | n/a
 C        | f       | f            |             0 | /bin/cc
 sql      | f       | f            |             0 | postgres
(3 rows)

I was under the impression (wrongly :-)) that ./configure --with-plpgsql
installed the language in the relevant template files so that initdb would
include it in template1. Closer inspection of the Makefile proves this is
not the case - I'll just use createlang...

Just ignore me. I'll probably go away eventually :-)

Regards, Dave.