From: Tom Lane <tgl@sss.pgh.pa.us>
To: ib@ianbellsoftware.com
Cc: 'Adrian Klaver' <adrian.klaver@aklaver.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: PGAdmin4 debugger - unable to call ltree functions
Date: Thu, 26 Apr 2018 18:18:14 -0400
Message-ID: <6461.1524781094@sss.pgh.pa.us> (raw)
In-Reply-To: <!&!AAAAAAAAAAAYAAAAAAAAADldbAmb6+pIq6nH7MxZl07CgAAAEAAAALYUIq6UE45EghB5Y7qKGA8BAAAAAA==@ianbellsoftware.com>
References: <!&!AAAAAAAAAAAYAAAAAAAAADldbAmb6+pIq6nH7MxZl07CgAAAEAAAAIqT25bsEetHsUwU9nKw1LEBAAAAAA==@ianbellsoftware.com>
<8f9e9bd6-3d99-924d-6e77-99402b9a4fb6@aklaver.com>
<!&!AAAAAAAAAAAYAAAAAAAAADldbAmb6+pIq6nH7MxZl07CgAAAEAAAALYUIq6UE45EghB5Y7qKGA8BAAAAAA==@ianbellsoftware.com>
"Ian Bell" <ib@ianbellsoftware.com> writes:
> I just tried your suggestion and it generates the same error. For
> verification, here is the function run in the debugger.
I just realized that "syntax error at position N" is *not* the exact
spelling you would get from a syntax error in PG's main parser, which
I think is what we were all assuming this'd trace down to somehow.
What it is is the (very poorly chosen) message you get if either
ltree_in() or lquery_in() doesn't like what it's been handed.
So basically, the problem here is that TestLtree() is being called
with a string that isn't a valid ltree representation. You haven't
shown us what you are doing on that end, but for example I can
duplicate the error message with
# select text2ltree(' ');
ERROR: syntax error at position 0
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, ib@ianbellsoftware.com, adrian.klaver@aklaver.com
Subject: Re: PGAdmin4 debugger - unable to call ltree functions
In-Reply-To: <6461.1524781094@sss.pgh.pa.us>
References: <!&!AAAAAAAAAAAYAAAAAAAAADldbAmb6+pIq6nH7MxZl07CgAAAEAAAAIqT25bsEetHsUwU9nKw1LEBAAAAAA==@ianbellsoftware.com> <8f9e9bd6-3d99-924d-6e77-99402b9a4fb6@aklaver.com> <!&!AAAAAAAAAAAYAAAAAAAAADldbAmb6+pIq6nH7MxZl07CgAAAEAAAALYUIq6UE45EghB5Y7qKGA8BAAAAAA==@ianbellsoftware.com> <6461.1524781094@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox