Re: [GENERAL] PgSQL not recognized

2006-11-16 Thread Richard Huxton
[EMAIL PROTECTED] wrote: I am using 8.1.5, which doesn't have IF EXISTS yet. Although, this is a good addition to the language. How do I ignore the error? The problem is that I would like to have a set of drop/create statements executed at once and one drop failing will abort the script executi

Re: [GENERAL] PgSQL not recognized

2006-11-15 Thread Martijn van Oosterhout
On Tue, Nov 14, 2006 at 12:28:33PM -0800, [EMAIL PROTECTED] wrote: > Obviously not as good I should have. I missed the begin and the end, > adding those solved the problem. I am new to Postgres and it is quite > differently designed compared to what I have been using so far, I just > thought I coul

Re: [GENERAL] PgSQL not recognized

2006-11-15 Thread [EMAIL PROTECTED]
> Have you read the documentation for the creation of functions? And > looked at the examples? > > http://www.postgresql.org/docs/8.1/static/plpgsql.html Obviously not as good I should have. I missed the begin and the end, adding those solved the problem. I am new to Postgres and it is quite diffe

Re: [GENERAL] PgSQL not recognized

2006-11-14 Thread Martijn van Oosterhout
On Mon, Nov 13, 2006 at 03:08:18PM -0800, [EMAIL PROTECTED] wrote: > I just installed a fresh Postgres database. select version(); gives: > > "PostgreSQL 8.1.5 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC) > 3.4.2 (mingw-special)" > > Normal statements like select * from sometable work fine.

[GENERAL] PgSQL not recognized

2006-11-14 Thread [EMAIL PROTECTED]
I just installed a fresh Postgres database. select version(); gives: "PostgreSQL 8.1.5 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC) 3.4.2 (mingw-special)" Normal statements like select * from sometable work fine. I initiated the default databases, created the postgres user and I tried to ru

Re: [GENERAL] PgSQL not recognized

2006-11-14 Thread A. Kretschmer
am Mon, dem 13.11.2006, um 15:08:18 -0800 mailte [EMAIL PROTECTED] folgendes: > I just installed a fresh Postgres database. select version(); gives: > > "PostgreSQL 8.1.5 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC) > 3.4.2 (mingw-special)" > > Normal statements like select * from sometable