[COMMITTERS] pgsql: Throw suitable error for COPY TO STDOUT/FROM STDIN in a SQL func

2017-01-14 Thread Tom Lane
Throw suitable error for COPY TO STDOUT/FROM STDIN in a SQL function. A client copy can't work inside a function because the FE/BE wire protocol doesn't support nesting of a COPY operation within query results. (Maybe it could, but the protocol spec doesn't suggest that clients should support thi

[COMMITTERS] pgsql: Throw suitable error for COPY TO STDOUT/FROM STDIN in a SQL func

2017-01-14 Thread Tom Lane
Throw suitable error for COPY TO STDOUT/FROM STDIN in a SQL function. A client copy can't work inside a function because the FE/BE wire protocol doesn't support nesting of a COPY operation within query results. (Maybe it could, but the protocol spec doesn't suggest that clients should support thi

[COMMITTERS] pgsql: Throw suitable error for COPY TO STDOUT/FROM STDIN in a SQL func

2017-01-14 Thread Tom Lane
Throw suitable error for COPY TO STDOUT/FROM STDIN in a SQL function. A client copy can't work inside a function because the FE/BE wire protocol doesn't support nesting of a COPY operation within query results. (Maybe it could, but the protocol spec doesn't suggest that clients should support thi

[COMMITTERS] pgsql: Throw suitable error for COPY TO STDOUT/FROM STDIN in a SQL func

2017-01-14 Thread Tom Lane
Throw suitable error for COPY TO STDOUT/FROM STDIN in a SQL function. A client copy can't work inside a function because the FE/BE wire protocol doesn't support nesting of a COPY operation within query results. (Maybe it could, but the protocol spec doesn't suggest that clients should support thi

[COMMITTERS] pgsql: Throw suitable error for COPY TO STDOUT/FROM STDIN in a SQL func

2017-01-14 Thread Tom Lane
Throw suitable error for COPY TO STDOUT/FROM STDIN in a SQL function. A client copy can't work inside a function because the FE/BE wire protocol doesn't support nesting of a COPY operation within query results. (Maybe it could, but the protocol spec doesn't suggest that clients should support thi

[COMMITTERS] pgsql: Throw suitable error for COPY TO STDOUT/FROM STDIN in a SQL func

2017-01-14 Thread Tom Lane
Throw suitable error for COPY TO STDOUT/FROM STDIN in a SQL function. A client copy can't work inside a function because the FE/BE wire protocol doesn't support nesting of a COPY operation within query results. (Maybe it could, but the protocol spec doesn't suggest that clients should support thi