Re: Use of ?get diagnostics'? - Mailing list pgsql-general

From Thiemo Kellner
Subject Re: Use of ?get diagnostics'?
Date
Msg-id 20190922183304.Horde.3Br7o_R17F7ZB9s9Qp6HweH@webmail.gelassene-pferde.biz
Whole thread Raw
In response to Re: Use of ?get diagnostics'?  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Responses Re: Use of ?get diagnostics'?
List 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




pgsql-general by date:

Previous
From: Jan Kohnert
Date:
Subject: Re: Extend inner join to fetch not yet connected rows also
Next
From: Tom Lane
Date:
Subject: Re: When does Postgres use binary I/O?