Bizzare plpgsql error - Mailing list pgsql-general

From Jim C. Nasby
Subject Bizzare plpgsql error
Date
Msg-id 20030527195600.GT40542@flake.decibel.org
Whole thread Raw
Responses Re: Bizzare plpgsql error  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-general
I'm getting this error trying to run a function:

usps=# select process_zip4();
WARNING:  Error occurred while executing PL/pgSQL function process_zip4
WARNING:  line 55 at SQL statement
ERROR:  parser: parse error at or near "$1" at character 14

The relivant code is:

            IF z.record_type_code = ''P'' THEN
                INSERT INTO po_box
                    SELECT z4.zip4_id
                            , ....

The INSERT INTO is line 55. What makes no sense is that it works fine if
I change the name of the table from po_box to anything else.

Any ideas?
--
Jim C. Nasby (aka Decibel!)                    jim@nasby.net
Member: Triangle Fraternity, Sports Car Club of America
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: newbie sql question...
Next
From: "Dmitri Bichko"
Date:
Subject: NULL sorts as largest?