From 7098166cc1d62eec24297a70cb2497549d702f05 Mon Sep 17 00:00:00 2001 From: aykut-bozkurt <51649454+aykut-bozkurt@users.noreply.github.com> Date: Tue, 23 Jul 2024 03:42:57 +0300 Subject: [PATCH] Add bindings for 'tcop/pquery.h' and 'commands/copy.h' header files (#1786) PR lets us access `PortalStart` and `PortalRun` from `tcop/pquery.h` and `BeginCopyFrom`, `CopyFrom`, and `EndCopyFrom` from `commands/copy.h`. They are useful during defining custom `DestReceiver`s and hooking into `COPY FROM`. --- pgrx-pg-sys/include/pg12.h | 2 ++ pgrx-pg-sys/include/pg13.h | 2 ++ pgrx-pg-sys/include/pg14.h | 2 ++ pgrx-pg-sys/include/pg15.h | 2 ++ pgrx-pg-sys/include/pg16.h | 2 ++ 5 files changed, 10 insertions(+) diff --git a/pgrx-pg-sys/include/pg12.h b/pgrx-pg-sys/include/pg12.h index bfa278f6d5..be770dc120 100644 --- a/pgrx-pg-sys/include/pg12.h +++ b/pgrx-pg-sys/include/pg12.h @@ -64,6 +64,7 @@ #include "catalog/pg_user_mapping.h" #include "catalog/storage.h" #include "commands/comment.h" +#include "commands/copy.h" #include "commands/dbcommands.h" #include "commands/defrem.h" #include "commands/event_trigger.h" @@ -139,6 +140,7 @@ #include "storage/smgr.h" #include "storage/spin.h" #include "storage/sync.h" +#include "tcop/pquery.h" #include "tcop/tcopprot.h" #include "tcop/utility.h" #include "tsearch/ts_public.h" diff --git a/pgrx-pg-sys/include/pg13.h b/pgrx-pg-sys/include/pg13.h index 649ba9a145..e1dee13b12 100644 --- a/pgrx-pg-sys/include/pg13.h +++ b/pgrx-pg-sys/include/pg13.h @@ -64,6 +64,7 @@ #include "catalog/pg_user_mapping.h" #include "catalog/storage.h" #include "commands/comment.h" +#include "commands/copy.h" #include "commands/dbcommands.h" #include "commands/defrem.h" #include "commands/event_trigger.h" @@ -139,6 +140,7 @@ #include "storage/smgr.h" #include "storage/spin.h" #include "storage/sync.h" +#include "tcop/pquery.h" #include "tcop/tcopprot.h" #include "tcop/utility.h" #include "tsearch/ts_public.h" diff --git a/pgrx-pg-sys/include/pg14.h b/pgrx-pg-sys/include/pg14.h index 2bd26f6adc..11350221e5 100644 --- a/pgrx-pg-sys/include/pg14.h +++ b/pgrx-pg-sys/include/pg14.h @@ -64,6 +64,7 @@ #include "catalog/pg_user_mapping.h" #include "catalog/storage.h" #include "commands/comment.h" +#include "commands/copy.h" #include "commands/dbcommands.h" #include "commands/defrem.h" #include "commands/event_trigger.h" @@ -140,6 +141,7 @@ #include "storage/smgr.h" #include "storage/spin.h" #include "storage/sync.h" +#include "tcop/pquery.h" #include "tcop/tcopprot.h" #include "tcop/utility.h" #include "tsearch/ts_public.h" diff --git a/pgrx-pg-sys/include/pg15.h b/pgrx-pg-sys/include/pg15.h index ba4e886990..a601b15104 100644 --- a/pgrx-pg-sys/include/pg15.h +++ b/pgrx-pg-sys/include/pg15.h @@ -65,6 +65,7 @@ #include "catalog/pg_user_mapping.h" #include "catalog/storage.h" #include "commands/comment.h" +#include "commands/copy.h" #include "commands/dbcommands.h" #include "commands/defrem.h" #include "commands/event_trigger.h" @@ -141,6 +142,7 @@ #include "storage/smgr.h" #include "storage/spin.h" #include "storage/sync.h" +#include "tcop/pquery.h" #include "tcop/tcopprot.h" #include "tcop/utility.h" #include "tsearch/ts_public.h" diff --git a/pgrx-pg-sys/include/pg16.h b/pgrx-pg-sys/include/pg16.h index 94f6c72003..ed3af3cdca 100644 --- a/pgrx-pg-sys/include/pg16.h +++ b/pgrx-pg-sys/include/pg16.h @@ -66,6 +66,7 @@ #include "catalog/pg_user_mapping.h" #include "catalog/storage.h" #include "commands/comment.h" +#include "commands/copy.h" #include "commands/dbcommands.h" #include "commands/defrem.h" #include "commands/event_trigger.h" @@ -143,6 +144,7 @@ #include "storage/smgr.h" #include "storage/spin.h" #include "storage/sync.h" +#include "tcop/pquery.h" #include "tcop/tcopprot.h" #include "tcop/utility.h" #include "tsearch/ts_public.h"