You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Peter Eisentraut
4cfce4e62c
Change copyObject() to use typeof_unqual
...
Currently, when the argument of copyObject() is const-qualified, the
return type is also, because the use of typeof carries over all the
qualifiers. This is incorrect, since the point of copyObject() is to
make a copy to mutate. But apparently no code ran into it.
The new implementation uses typeof_unqual, which drops the qualifiers,
making this work correctly.
typeof_unqual is standardized in C23, but all recent versions of all
the usual compilers support it even in non-C23 mode, at least as
__typeof_unqual__. We add a configure/meson test for typeof_unqual
and __typeof_unqual__ and use it if it's available, else we use the
existing fallback of just returning void *.
Reviewed-by: David Geier <geidav.pg@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/92f9750f-c7f6-42d8-9a4a-85a3cbe808f3%40eisentraut.org
1 month ago
..
access
Rename AssertVariableIsOfType to StaticAssertVariableIsOfType
1 month ago
archive
Update copyright for 2026
2 months ago
backup
Update copyright for 2026
2 months ago
bootstrap
Update copyright for 2026
2 months ago
catalog
Reject ADD CONSTRAINT NOT NULL if name mismatches existing constraint
1 month ago
commands
Fix trigger transition table capture for MERGE in CTE queries.
1 month ago
common
Fix accidentally cast away qualifiers
1 month ago
datatype
Update copyright for 2026
2 months ago
executor
Standardize replication origin naming to use "ReplOrigin".
1 month ago
fe_utils
Update copyright for 2026
2 months ago
foreign
Update copyright for 2026
2 months ago
jit
Fix typos and inconsistencies in code and comments
2 months ago
lib
Rename AssertVariableIsOfType to StaticAssertVariableIsOfType
1 month ago
libpq
pqcomm.h: Explicitly reserve protocol v3.1
2 months ago
mb
Update copyright for 2026
2 months ago
nodes
Change copyObject() to use typeof_unqual
1 month ago
optimizer
Allow for plugin control over path generation strategies.
1 month ago
parser
Force standard_conforming_strings to always be ON.
2 months ago
partitioning
Update copyright for 2026
2 months ago
pch
Update copyright for 2026
2 months ago
port
Refactor some SIMD and popcount macros.
2 months ago
portability
Remove PG_MMAP_FLAGS from mem.h
1 month ago
postmaster
Wake up autovacuum launcher from postmaster when a worker exits
2 months ago
regex
Update copyright for 2026
2 months ago
replication
Consolidate replication origin session globals into a single struct.
1 month ago
rewrite
Update copyright for 2026
2 months ago
snowball
Update to latest Snowball sources.
2 months ago
statistics
Add support for "mcv" in pg_restore_extended_stats()
1 month ago
storage
Remove useless errdetail_abort()
1 month ago
tcop
Update copyright for 2026
2 months ago
tsearch
Update copyright for 2026
2 months ago
utils
Rename AssertVariableIsOfType to StaticAssertVariableIsOfType
1 month ago
.gitignore
Use <stdint.h> and <inttypes.h> for c.h integers.
1 year ago
Makefile
Fix build inconsistency due to the generation of wait-event code
1 month ago
c.h
Change StaticAssertVariableIsOfType to be a declaration
1 month ago
fmgr.h
Add data type oid8, 64-bit unsigned identifier
2 months ago
funcapi.h
Update copyright for 2026
2 months ago
getopt_long.h
Update copyright for 2026
2 months ago
meson.build
Decouple C++ support in Meson's PGXS from LLVM enablement
2 months ago
miscadmin.h
Update copyright for 2026
2 months ago
pg_config.h.in
Change copyObject() to use typeof_unqual
1 month ago
pg_config_manual.h
Update copyright for 2026
2 months ago
pg_getopt.h
Update copyright for 2026
2 months ago
pg_trace.h
Update copyright for 2026
2 months ago
pgstat.h
Update copyright for 2026
2 months ago
pgtar.h
Update copyright for 2026
2 months ago
pgtime.h
Update copyright for 2026
2 months ago
port.h
strnlen() is now required
2 months ago
postgres.h
Rename AssertVariableIsOfType to StaticAssertVariableIsOfType
1 month ago
postgres_ext.h
Move pg_int64 back to postgres_ext.h
6 months ago
postgres_fe.h
Update copyright for 2026
2 months ago
varatt.h
Fix accidentally cast away qualifiers
1 month ago
windowapi.h
Update copyright for 2026
2 months ago