Re: Use of ?get diagnostics'?

From: Thiemo Kellner <thiemo(at)gelassene-pferde(dot)biz>
To: PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Use of ?get diagnostics'?
Date: 2019-09-22 18:33:04
Message-ID: 20190922183304.Horde.3Br7o_R17F7ZB9s9Qp6HweH@webmail.gelassene-pferde.biz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Andrew

> Paste sites are for IRC, on the mailing list you should always attach
> the necessary details to your message.

Ok, I was under the impression that paste site were preferable to
attachments which generates traffic not everyone is interested in.

> Thiemo> the following exception was thrown:
> Thiemo> SQLSTATE: 42703
> Thiemo> column "row_count" does not exist
>
> line 44 of your paste: V_TEXT := V_TEXT || ROW_COUNT || ' row.';
>
> should be V_ROW_COUNT, I suspect. Likewise line 46.

You are perfectly right and now I feel a bit stupid. Many thanks!

Maybe others had the same idea, but it would help me, if the exception
contained a line where the error was found. Though, I am not quite
sure whether this is just due to my error handling in the function.

Kind regards

Thiemo

--
S/MIME Public Key: https://oc.gelassene-pferde.biz/index.php/s/eJuAUFONag6ofnH
Signal (Safer than WhatsApp): +49 1578 7723737
Handys: +41 78 947 36 21 | +49 1578 772 37 37
Tox-Id:
B7282A9E31D944DDAD1ECC5B33C36AAE80B32D119AB7391D602C937A65E8CA0625C495C5322B

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2019-09-22 18:53:44 Re: When does Postgres use binary I/O?
Previous Message Jan Kohnert 2019-09-22 17:45:47 Re: Extend inner join to fetch not yet connected rows also