pg_stat_get_progress_info(NULL) blows up

Started by Thomas Munroabout 10 years ago3 messageshackers
Jump to latest
#1Thomas Munro
thomas.munro@gmail.com

Hi

I guess pg_stat_get_progress_info should either be strict (see
attached) or check for NULL.

--
Thomas Munro
http://www.enterprisedb.com

Attachments:

pg_stat_get_progress_info-strict.patchapplication/octet-stream; name=pg_stat_get_progress_info-strict.patchDownload+1-1
#2Amit Langote
Langote_Amit_f8@lab.ntt.co.jp
In reply to: Thomas Munro (#1)
Re: pg_stat_get_progress_info(NULL) blows up

On 2016/03/14 10:54, Thomas Munro wrote:

Hi

I guess pg_stat_get_progress_info should either be strict (see
attached) or check for NULL.

Thanks a lot for reporting and the patch. I think that's an oversight.

Thanks,
Amit

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Thomas Munro (#1)
Re: pg_stat_get_progress_info(NULL) blows up

Thomas Munro <thomas.munro@enterprisedb.com> writes:

I guess pg_stat_get_progress_info should either be strict (see
attached) or check for NULL.

Pushed, thanks.

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers