OSDN Git Service

Restore in-hash plan text storage as an alternative
authorKyotaro Horiguchi <horikyota.ntt@gmail.com>
Thu, 25 Nov 2021 02:03:36 +0000 (11:03 +0900)
committerKyotaro Horiguchi <horikyota.ntt@gmail.com>
Thu, 25 Nov 2021 10:37:02 +0000 (19:37 +0900)
commit08e725663a02a6bbafd48f229f711960e178f08d
tree329cb1c8f933ca4080fc0c679051cefe643bd8fe
parentf4c1924041650725abec2a69f22bec23b4b2256f
Restore in-hash plan text storage as an alternative

We once moved completely to store plan texts into a file.  This commit
re-introduces the in-hash plan storage as an alternative choice with
the file storage, in case where garbage collection on files is
painful.

The in-hash storage is fixed-length so the efficiency of memory usage
if rather low.  We could improve the efficiency by using the same
strategy with the file storage if DSA, or expandable shared memory,
were available on postmaster, but it is not available at least for
now.  So as the second best we stay providing the same method with the
existing implement.
docs/index.html
pg_store_plans.c