-
- Downloads
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
Showing
- src/backend/access/common/Makefile 2 additions, 2 deletionssrc/backend/access/common/Makefile
- src/backend/access/common/printsimple.c 110 additions, 0 deletionssrc/backend/access/common/printsimple.c
- src/backend/tcop/dest.c 12 additions, 0 deletionssrc/backend/tcop/dest.c
- src/include/access/printsimple.h 23 additions, 0 deletionssrc/include/access/printsimple.h
- src/include/tcop/dest.h 1 addition, 0 deletionssrc/include/tcop/dest.h
Loading
Please register or sign in to comment