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 58246D1B1FD for ; Thu, 22 Jul 2004 10:49:29 -0300 (ADT) 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 45023-05 for ; Thu, 22 Jul 2004 13:49:28 +0000 (GMT) Received: from surveyor2.sarnoff.com (surveyor2.sarnoff.com [130.33.8.76]) by svr1.postgresql.org (Postfix) with SMTP id B87FFD1B298 for ; Thu, 22 Jul 2004 10:49:14 -0300 (ADT) Received: from postoffice.sarnoff.com(130.33.10.147) by surveyor2.sarnoff.com via csmap id 1a09e79e_dbe6_11d8_8849_00304811e8c7_12135; Thu, 22 Jul 2004 09:50:33 -0400 (EDT) Received: from sarnoff.com ([130.33.12.124]) by postoffice.sarnoff.com (Netscape Messaging Server 4.15) with ESMTP id I19AEA00.A4M for ; Thu, 22 Jul 2004 09:49:22 -0400 Message-ID: <40FFC708.5970EC94@sarnoff.com> Date: Thu, 22 Jul 2004 09:54:16 -0400 From: "Oleg Konovalov" X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: PSQL Syntax errors running PL/SQL scripts Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/241 X-Sequence-Number: 18493 Hi, I am trying to run SQL scripts creating schema in PSQL [PostgreSQL 7.4.3] and getting tons of errors, mostly "syntax error at or near character..." Complains about CONSTRAINTS, Prompt, Set, Local, CREATE, '(', ')' ,... Also many errors "relation ... already exists" [I guess, if DROP failed] My script runs fine with Oracle 8i/9i. Is PostgreSQL so much different from PL/SQL ? Any good syntax reference for PostgreSQL ? Thank you in advance, Oleg.