pgsql: Add missing errcode() in a few ereport calls.

2020-03-17 Thread Amit Kapila
Add missing errcode() in a few ereport calls. This will allow to specifying SQLSTATE error code for the errors in the missing places. Reported-by: Sawada Masahiko Author: Sawada Masahiko Backpatch-through: 9.5 Discussion: https://postgr.es/m/ca+fd4k6n8ejnvzpm8nme+y+05mz-sm8z_bgkixzka34r+ej...@ma

pgsql: Add missing errcode() in a few ereport calls.

2020-03-17 Thread Amit Kapila
Add missing errcode() in a few ereport calls. This will allow to specifying SQLSTATE error code for the errors in the missing places. Reported-by: Sawada Masahiko Author: Sawada Masahiko Backpatch-through: 9.5 Discussion: https://postgr.es/m/ca+fd4k6n8ejnvzpm8nme+y+05mz-sm8z_bgkixzka34r+ej...@ma

pgsql: Add missing errcode() in a few ereport calls.

2020-03-17 Thread Amit Kapila
Add missing errcode() in a few ereport calls. This will allow to specifying SQLSTATE error code for the errors in the missing places. Reported-by: Sawada Masahiko Author: Sawada Masahiko Backpatch-through: 9.5 Discussion: https://postgr.es/m/ca+fd4k6n8ejnvzpm8nme+y+05mz-sm8z_bgkixzka34r+ej...@ma

pgsql: Add missing errcode() in a few ereport calls.

2020-03-17 Thread Amit Kapila
Add missing errcode() in a few ereport calls. This will allow to specifying SQLSTATE error code for the errors in the missing places. Reported-by: Sawada Masahiko Author: Sawada Masahiko Backpatch-through: 9.5 Discussion: https://postgr.es/m/ca+fd4k6n8ejnvzpm8nme+y+05mz-sm8z_bgkixzka34r+ej...@ma

pgsql: Add missing errcode() in a few ereport calls.

2020-03-17 Thread Amit Kapila
Add missing errcode() in a few ereport calls. This will allow to specifying SQLSTATE error code for the errors in the missing places. Reported-by: Sawada Masahiko Author: Sawada Masahiko Backpatch-through: 9.5 Discussion: https://postgr.es/m/ca+fd4k6n8ejnvzpm8nme+y+05mz-sm8z_bgkixzka34r+ej...@ma

pgsql: Add missing errcode() in a few ereport calls.

2020-03-17 Thread Amit Kapila
Add missing errcode() in a few ereport calls. This will allow to specifying SQLSTATE error code for the errors in the missing places. Reported-by: Sawada Masahiko Author: Sawada Masahiko Backpatch-through: 9.5 Discussion: https://postgr.es/m/ca+fd4k6n8ejnvzpm8nme+y+05mz-sm8z_bgkixzka34r+ej...@ma