Re: multiline PL/Python function fails in *.sql - Mailing list pgsql-novice

From Tom Lane
Subject Re: multiline PL/Python function fails in *.sql
Date
Msg-id 352.1070467627@sss.pgh.pa.us
Whole thread Raw
In response to multiline PL/Python function fails in *.sql  (Wolfgang Rohdewald <wolfgang@rohdewald.de>)
List pgsql-novice
Wolfgang Rohdewald <wolfgang@rohdewald.de> writes:
> but multiline only works when using psql interactively.

I'm not much of a Python user, but doesn't Python think that leading
whitespace (particularly tabs) is significant?  You may be losing
tabs if psql tries to take them as completion commands.

            regards, tom lane

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Failed to create a function SOLVED
Next
From: SaiHertz And Control Systems
Date:
Subject: Auto commit Off how will it effect us ?