Re: We still claim "cannot begin/end transactions in PL/pgSQL"

2018-06-26 Thread Peter Eisentraut
On 5/31/18 14:01, Peter Eisentraut wrote: > There are three occurrences: > > The occurrence in exec_prepare_plan() could never be reached AFAICT, > because SPI_prepare_params() does not produce those SPI_prepare_params() > error values in the first place. So remove them altogether. > > The occur

Re: We still claim "cannot begin/end transactions in PL/pgSQL"

2018-05-31 Thread Peter Eisentraut
On 5/25/18 12:16, Tom Lane wrote: > I notice there are still several places in pl_exec.c like this: > > case SPI_ERROR_TRANSACTION: > ereport(ERROR, > (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), > errmsg("cannot begin/end transactions in PL

We still claim "cannot begin/end transactions in PL/pgSQL"

2018-05-25 Thread Tom Lane
I notice there are still several places in pl_exec.c like this: case SPI_ERROR_TRANSACTION: ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot begin/end transactions in PL/pgSQL"), errhint("Use a