From 7e4898cb27dded390f1d4f4250811aef93fec7f3 Mon Sep 17 00:00:00 2001 From: Hannu Krosing Date: Thu, 4 Apr 2024 00:18:12 +0200 Subject: [PATCH] Update pglogical_functions.c Skip generated columns as these are not COPY-able --- pglogical_functions.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pglogical_functions.c b/pglogical_functions.c index 9c98d36..fc0c085 100644 --- a/pglogical_functions.c +++ b/pglogical_functions.c @@ -1980,6 +1980,11 @@ pglogical_show_repset_table_info(PG_FUNCTION_ARGS) /* Skip dropped columns. */ if (att->attisdropped) continue; +#if PG_VERSION_NUM >= 120000 + /* Skip generated columns as these are not COPY-able */ + if (att->attgenerated) + continue; +#endif /* Skip filtered columns if any. */ if (tableinfo->att_list &&