From 94e5193bffd5b2107710ba4fab0405ba22ea6dcf Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Fri, 28 Jul 2023 16:19:21 +0200 Subject: [pq] added helper to load oids of composite types - TALER_PQ_load_oids_for_composite_types added - Called during postgres-initialization --- src/pq/pq_common.h | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/pq/pq_common.h') diff --git a/src/pq/pq_common.h b/src/pq/pq_common.h index 36ba62a4..79c9d83c 100644 --- a/src/pq/pq_common.h +++ b/src/pq/pq_common.h @@ -47,20 +47,6 @@ enum TALER_PQ_ArrayType TALER_PQ_array_of_MAX, /* must be last */ }; -/** - * The header for a postgresql array in binary format. note that this a - * simplified special case of the general structure (which contains pointers), - * as we only support one-dimensional arrays. - */ -struct TALER_PQ_ArrayHeader_P -{ - uint32_t ndim; /* number of dimensions. we only support ndim = 1 */ - uint32_t has_null; - uint32_t oid; - uint32_t dim; /* size of the array */ - uint32_t lbound; /* index value of first element in the db (default: 1). */ -} __attribute__((packed)); - /** * Memory representation of an taler amount record for Postgres. * @@ -92,5 +78,6 @@ struct TALER_PQ_Amount_P .f = htonl ((amount)->fraction) \ } + #endif /* TALER_PQ_COMMON_H_ */ /* end of pg/pq_common.h */ -- cgit v1.2.3