postgresql/src/test/examples
Thomas Munro 3c86223c99 libpq: Deprecate pg_int64.
Previously we used pg_int64 in three function prototypes in libpq.  It
was added by commit 461ef73f to expose the platform-dependent type used
for int64 in the C89 era.  As of commit 962da900 it is defined as
standard int64_t, and the dust seems to have settled.

Let's just use int64_t directly in these three client-facing functions
instead of (yet) another name.  We've required C99 and thus <stdint.h>
since PostgreSQL 12, C89 and C++98 compilers are long gone, and client
applications very likely use standard types for their own 64-bit needs.
This also cleans up the obscure placement of a new #include <stdint.h>
directive in postgres_ext.h, required for the new definition.  The
typedef was hiding in there for historical reasons, but it doesn't fit
postgres_ext.h's own description of its purpose and there is no evidence
of client applications including postgres_ext.h directly to see it.

Keep a typedef marked deprecated for backward compatibility, but move it
into libpq-fe.h where it was used.

Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/CA%2BhUKGKn_EkNNGMY5RzMcKP%2Ba6urT4JF%3DCPhw_zHtQwjvX6P2g%40mail.gmail.com
2025-03-25 21:40:00 +13:00
..
.gitignore Fix up .gitignore and cleanup actions in some src/test/ subdirectories. 2015-04-24 17:13:06 -04:00
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
testlibpq.c Avoid redundantly prefixing PQerrorMessage for a connection failure. 2021-01-22 16:52:31 -05:00
testlibpq2.c Remove configure probe for sys/select.h. 2022-08-14 00:09:47 +12:00
testlibpq2.sql Document security implications of search_path and the public schema. 2018-02-26 07:39:44 -08:00
testlibpq3.c Avoid redundantly prefixing PQerrorMessage for a connection failure. 2021-01-22 16:52:31 -05:00
testlibpq3.sql Fix testlibpq3 2019-09-18 16:34:34 -03:00
testlibpq4.c libpq: Remove deprecated connection parameters authtype and tty 2021-03-09 15:01:22 +01:00
testlo.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
testlo64.c libpq: Deprecate pg_int64. 2025-03-25 21:40:00 +13:00