From: Adrian Klaver <adrian.klaver@aklaver.com>
To: David Gauthier <dfgpostgres@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to \ef a function ?
Date: Mon, 8 Jan 2024 08:40:14 -0800
Message-ID: <5991da49-11ba-4b0a-8ed8-a7bc59ea0405@aklaver.com> (raw)
In-Reply-To: <CAEs=6D=nwX2wm0hjkaw6C_LnqR+NFtnnzbSzeZq-xcfi_ooKSw@mail.gmail.com>
References: <CAEs=6D=nwX2wm0hjkaw6C_LnqR+NFtnnzbSzeZq-xcfi_ooKSw@mail.gmail.com>
On 1/8/24 08:26, David Gauthier wrote:
> atletx7-reg017:/home/dgauthie[ 120 ] --> dvdbdev
> Pager usage is off.
> psql (11.5, server 11.3)
> Type "help" for help.
>
> dvdb=# \df opid.bef_ins_axi_reqs_set_trig;
> List of functions
> Schema | Name | Result data type | Argument data
> types | Type
> --------+---------------------------+------------------+---------------------+------
> opid | bef_ins_axi_reqs_set_trig | trigger |
> | func
> (1 row)
>
> dvdb=# \ef opid.bef_ins_axi_reqs_set_trig;
> ERROR: function "opid.bef_ins_axi_reqs_set_trig;" does not exist
Lose the ';'.
It should be:
\ef opid.bef_ins_axi_reqs_set_trig
> dvdb=# \ef opid.bef_ins_axi_reqs_set_trig();
> ERROR: expected a right parenthesis
> dvdb=#
>
> So the function exists with \df but not \ef ?
> I get the need to identify the argument list (in case there's >1 with
> same name, diff arg list), but '()' doesn't work. Does this have to do
> with the returned trigger type ?
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, dfgpostgres@gmail.com
Subject: Re: How to \ef a function ?
In-Reply-To: <5991da49-11ba-4b0a-8ed8-a7bc59ea0405@aklaver.com>
References: <CAEs=6D=nwX2wm0hjkaw6C_LnqR+NFtnnzbSzeZq-xcfi_ooKSw@mail.gmail.com> <5991da49-11ba-4b0a-8ed8-a7bc59ea0405@aklaver.com>
* 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