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 4D1655E46F2 for ; Wed, 25 Aug 2004 23:43:46 -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 52497-01 for ; Thu, 26 Aug 2004 02:43:42 +0000 (GMT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by svr1.postgresql.org (Postfix) with ESMTP id 262385E46CD for ; Wed, 25 Aug 2004 23:43:38 -0300 (ADT) Received: from ranger (c-24-17-160-6.client.comcast.net[24.17.160.6]) by comcast.net (rwcrmhc13) with SMTP id <2004082602434401500p6m6ue>; Thu, 26 Aug 2004 02:43:44 +0000 Content-Type: text/plain; charset="iso-8859-1" From: Adrian Klaver Reply-To: aklaver@attbi.com To: Tom Lane , "Kathrine S" Subject: Re: ERROR: Invalid regular expression: parentheses ( ) not balanced Date: Wed, 25 Aug 2004 19:44:52 -0700 User-Agent: KMail/1.4.3 Cc: pgsql-sql@postgresql.org References: <11200.1093486890@sss.pgh.pa.us> In-Reply-To: <11200.1093486890@sss.pgh.pa.us> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200408251944.52693.aklaver@comcast.net> 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: 200408/278 X-Sequence-Number: 18775 On Wednesday 25 August 2004 07:21 pm, Tom Lane wrote: > "Kathrine S" writes: > > Below is a copy of my sql sentence including the error I am getting. Wh= at > > does the error mean? What have I done wrong? > > > > kathrirs=3D# insert into faglaerer > > kathrirs-# values ('f-001', '13056802876', 'Petter L=E6r', > > lo_import('/home/studenter/it03/kathrirs/img/img01.jpg'),<----1 > > kathrirs(# '2001-12-25', 100, 'Professor', 'A', 1,<------2 > > '{"linux","programmering","matematikk","neutrale nettverk"}', > > kathrirs(# 12, 'petter.laer@dih.no', '8212'); > > ERROR: Invalid regular expression: parentheses ( ) not balanced > > There's no regular expression in what you've shown us. Maybe you have > rules or triggers that are fired by this INSERT? If so, you need to > look at what they are doing. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org I don't know what to make of it but the problem seems to start at the lines= I=20 have marked 1 & 2 and involves the lo_import function. I have not used=20 lo_import and so do not know how to call it. What I do see is that it is= =20 called at 1 and a '(' shows up to the left of the prompt at 2 and stays= =20 there indicating to me at least the parser is not happy. --=20 Adrian Klaver=09 aklaver@comcast.net