fastpath code neglected to check whether user has privileges to call the
Tom Lane <tgl@sss.pgh.pa.us>
fastpath code neglected to check whether user has privileges to call the target function. Also, move SetQuerySnapshot() call to avoid assert failure when a fastpath call is attempted in an aborted transaction.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/tcop/fastpath.c | modified | +16 −1 |
| src/backend/tcop/postgres.c | modified | +2 −5 |