From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: sagar jadhav <sagarjdhv5@gmail.com>
Cc: Nikhil Ingale <niks.bgm@gmail.com>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: failed to execute the psql case statement which has the function call.
Date: Tue, 05 Apr 2022 10:10:30 -0400
Message-ID: <2358038.1649167830@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwYugnug1o+zbdLv27pJQWZs+pHOwwvW5W6KsTONJz7pNA@mail.gmail.com>
References: <CALXkTpzzBp7+NjXt5QptMsefJGgnnxoE2mQJKHR0-ucyZaUd+A@mail.gmail.com>
<CAKFQuwYBRbm_jqO4APypSLiYbqY=Qcx9d4XQc97H+KJK83SPvQ@mail.gmail.com>
<CACPo9Dp=aq9cgn2ssyC6YFHsJ5Wbq1ZbRYNDJWeujerQa3TLVA@mail.gmail.com>
<CAKFQuwYugnug1o+zbdLv27pJQWZs+pHOwwvW5W6KsTONJz7pNA@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> But the error fragment shown suggests that the query shouldn't be expecting
> a column name (contrary to my earlier point), so we are back to having to
> see the entire function definition (or a reproducible example) to provide
> an answer. Spelling typo comes to mind.
I'm wondering if there's an actual function involved at all.
Maybe the OP is just writing this in a psql script and wanting
to substitute a psql variable. In that case something like
:'variable' might be the solution.
Bottom line is the same though: we need to see a lot more context
than we've been shown.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, sagarjdhv5@gmail.com, niks.bgm@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: failed to execute the psql case statement which has the function call.
In-Reply-To: <2358038.1649167830@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