[PATCH] pg_convert improvement - Mailing list pgsql-hackers

From Yurii Rashkovskii
Subject [PATCH] pg_convert improvement
Date
Msg-id CA+RLCQyknBPSWXRBQGOi6aYEcdQ9RpH9Kch4GjoeY8dQ3D+vhw@mail.gmail.com
Whole thread Raw
Responses Re: [PATCH] pg_convert improvement
List pgsql-hackers
Hi,

I propose a patch that ensures `pg_convert` doesn't allocate and copy data when no conversion is done. It is an unnecessary overhead, especially when such conversions are done frequently and for large values.

I've tried measuring the performance impact, and the patched version has a small but non-zero gain.

The patch builds against `master` and `make check` succeeds.

Happy to hear any feedback!

--
Y.

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: GUC names in messages
Next
From: Michael Paquier
Date:
Subject: Re: Adding facility for injection points (or probe points?) for more advanced tests