diff options
| author | Robert Haas | 2017-01-24 21:53:56 +0000 |
|---|---|---|
| committer | Robert Haas | 2017-01-24 21:53:56 +0000 |
| commit | a84069d9350400c860d5e932b50dfd337aa407b0 (patch) | |
| tree | ac278978c902539d065211f2fb47c4a04d4b40f3 /src/include/tcop | |
| parent | 7b4ac19982a77a1a2a6f096c4a11ee7325a14d2c (diff) | |
Add a new DestReceiver for printing tuples without catalog access.
If you create a DestReciver of type DestRemote and try to use it from
a replication connection that is not bound to a specific daabase, or
any other hypothetical type of backend that is not bound to a specific
database, it will fail because it doesn't have a pg_proc catalog to
look up properties of the types being printed. In general, that's
an unavoidable problem, but we can hardwire the properties of a few
builtin types in order to support utility commands. This new
DestReceiver of type DestRemoteSimple does just that.
Patch by me, reviewed by Michael Paquier.
Discussion: http://postgr.es/m/CA+TgmobNo4qz06wHEmy9DszAre3dYx-WNhHSCbU9SAwf+9Ft6g@mail.gmail.com
Diffstat (limited to 'src/include/tcop')
| -rw-r--r-- | src/include/tcop/dest.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/tcop/dest.h b/src/include/tcop/dest.h index 93f9b7463a..c459af2e13 100644 --- a/src/include/tcop/dest.h +++ b/src/include/tcop/dest.h @@ -89,6 +89,7 @@ typedef enum DestDebug, /* results go to debugging output */ DestRemote, /* results sent to frontend process */ DestRemoteExecute, /* sent to frontend, in Execute command */ + DestRemoteSimple, /* sent to frontend, w/no catalog access */ DestSPI, /* results sent to SPI manager */ DestTuplestore, /* results sent to Tuplestore */ DestIntoRel, /* results sent to relation (SELECT INTO) */ |
