[PATCH] Make various variables read-only (const)

From: Oskari Saarenmaa <os(at)ohmu(dot)fi>
To: pgsql-hackers(at)postgresql(dot)org
Subject: [PATCH] Make various variables read-only (const)
Date: 2013-12-20 17:01:37
Message-ID: 20131220170137.GC11358@saarenmaa.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

This allows the variables to be moved from .data to .rodata section which
means that more data can be shared by processes and makes sure that nothing
can accidentally overwrite the read-only definitions. On a x86-64 Linux
system this moves roughly 9 kilobytes of previously writable data to the
read-only data segment in the backend and 4 kilobytes in libpq.


24 files changed, 108 insertions(+), 137 deletions(-)

/ Oskari

Attachment Content-Type Size
0001-Make-various-variables-read-only-const.patch text/plain 32.9 KB


Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2013-12-20 17:29:11 Re: make_interval ??
Previous Message Heikki Linnakangas 2013-12-20 15:59:06 Re: GIN improvements part 1: additional information