Skip to content

Use palloc0() instead of palloc0fast() - #108

Open
jeltz wants to merge 1 commit into
xataio:mainfrom
jeltz:palloc0fast
Open

Use palloc0() instead of palloc0fast()#108
jeltz wants to merge 1 commit into
xataio:mainfrom
jeltz:palloc0fast

Conversation

@jeltz

@jeltz jeltz commented May 25, 2026

Copy link
Copy Markdown

The palloc0fast() function was removed in PostgreSQL 17 since it according to the PostgreSQL developers was not actually faster than palloc0() on modern compilers. So to support PostgreSQL 17 and later we should switch to using palloc0().

See https://git.postgresql.org/pg/commitdiff/3c080fb4fad3e1c1e34f74a7b84a443137adc9f2

The palloc0fast() function was removed in PostgreSQL 17 since it
according to the PostgreSQL developers was not actually faster than
palloc0() on modern compilers. So to support PostgreSQL 17 and later
we should switch to using palloc0().

See https://git.postgresql.org/pg/commitdiff/3c080fb4fad3e1c1e34f74a7b84a443137adc9f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant