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
6 days ago
..
access
Rename AssertVariableIsOfType to StaticAssertVariableIsOfType
7 days ago
archive
Update copyright for 2026
1 month ago
backup
Update copyright for 2026
1 month ago
bootstrap
Update copyright for 2026
1 month ago
catalog
Reject ADD CONSTRAINT NOT NULL if name mismatches existing constraint
6 days ago
commands
Fix trigger transition table capture for MERGE in CTE queries.
2 weeks ago
common
Fix accidentally cast away qualifiers
2 weeks ago
datatype
Update copyright for 2026
1 month ago
executor
Standardize replication origin naming to use "ReplOrigin".
2 weeks ago
fe_utils
Update copyright for 2026
1 month ago
foreign
Update copyright for 2026
1 month ago
jit
Fix typos and inconsistencies in code and comments
1 month ago
lib
Rename AssertVariableIsOfType to StaticAssertVariableIsOfType
7 days ago
libpq
pqcomm.h: Explicitly reserve protocol v3.1
2 weeks ago
mb
Update copyright for 2026
1 month ago
nodes
Change copyObject() to use typeof_unqual
6 days ago
optimizer
Allow for plugin control over path generation strategies.
2 weeks ago
parser
Force standard_conforming_strings to always be ON.
3 weeks ago
partitioning
Update copyright for 2026
1 month ago
pch
Update copyright for 2026
1 month ago
port
Refactor some SIMD and popcount macros.
3 weeks ago
portability
Remove PG_MMAP_FLAGS from mem.h
2 weeks ago
postmaster
Wake up autovacuum launcher from postmaster when a worker exits
4 weeks ago
regex
Update copyright for 2026
1 month ago
replication
Consolidate replication origin session globals into a single struct.
2 weeks ago
rewrite
Update copyright for 2026
1 month ago
snowball
Update to latest Snowball sources.
1 month ago
statistics
Add support for "mcv" in pg_restore_extended_stats()
2 weeks ago
storage
Remove useless errdetail_abort()
6 days ago
tcop
Update copyright for 2026
1 month ago
tsearch
Update copyright for 2026
1 month ago
utils
Rename AssertVariableIsOfType to StaticAssertVariableIsOfType
7 days 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 week ago
c.h
Change StaticAssertVariableIsOfType to be a declaration
7 days ago
fmgr.h
Add data type oid8, 64-bit unsigned identifier
1 month ago
funcapi.h
Update copyright for 2026
1 month ago
getopt_long.h
Update copyright for 2026
1 month ago
meson.build
Decouple C++ support in Meson's PGXS from LLVM enablement
1 month ago
miscadmin.h
Update copyright for 2026
1 month ago
pg_config.h.in
Change copyObject() to use typeof_unqual
6 days ago
pg_config_manual.h
Update copyright for 2026
1 month ago
pg_getopt.h
Update copyright for 2026
1 month ago
pg_trace.h
Update copyright for 2026
1 month ago
pgstat.h
Update copyright for 2026
1 month ago
pgtar.h
Update copyright for 2026
1 month ago
pgtime.h
Update copyright for 2026
1 month ago
port.h
strnlen() is now required
1 month ago
postgres.h
Rename AssertVariableIsOfType to StaticAssertVariableIsOfType
7 days ago
postgres_ext.h
Move pg_int64 back to postgres_ext.h
5 months ago
postgres_fe.h
Update copyright for 2026
1 month ago
varatt.h
Fix accidentally cast away qualifiers
2 weeks ago
windowapi.h
Update copyright for 2026
1 month ago