pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add PGTYPESchar_free() to avoid cross-module problems on Windows
6+ messages / 1 participants
[nested] [flat]

* pgsql: Add PGTYPESchar_free() to avoid cross-module problems on Windows
@ 2018-06-18 06:34  Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Thomas Munro @ 2018-06-18 06:34 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add PGTYPESchar_free() to avoid cross-module problems on Windows.

On Windows, it is sometimes important for corresponding malloc() and
free() calls to be made from the same DLL, since some build options can
result in multiple allocators being active at the same time.  For that
reason we already provided PQfreemem().  This commit adds a similar
function for freeing string results allocated by the pgtypes library.

Author: Takayuki Tsunakawa
Reviewed-by: Kyotaro Horiguchi
Discussion: https://postgr.es/m/0A3221C70F24FB45833433255569204D1F8AD5D6%40G01JPEXMBYT05

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4c8156d87108fa1f245bee13775e76819cd46a90

Modified Files
--------------
doc/src/sgml/ecpg.sgml                             | 18 ++++-
src/interfaces/ecpg/include/Makefile               |  2 +-
src/interfaces/ecpg/include/pgtypes.h              | 17 +++++
src/interfaces/ecpg/include/pgtypes_date.h         |  1 +
src/interfaces/ecpg/include/pgtypes_interval.h     |  1 +
src/interfaces/ecpg/include/pgtypes_numeric.h      |  2 +
src/interfaces/ecpg/include/pgtypes_timestamp.h    |  1 +
src/interfaces/ecpg/pgtypeslib/common.c            | 10 +++
src/interfaces/ecpg/pgtypeslib/exports.txt         |  1 +
.../ecpg/test/expected/pgtypeslib-dt_test.c        | 84 +++++++++++-----------
.../ecpg/test/expected/pgtypeslib-dt_test2.c       | 12 ++--
.../ecpg/test/expected/pgtypeslib-num_test.c       | 10 +--
.../ecpg/test/expected/pgtypeslib-num_test2.c      | 26 +++----
.../ecpg/test/expected/preproc-outofscope.c        |  2 +
src/interfaces/ecpg/test/expected/sql-sqlda.c      |  4 +-
src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc    | 84 +++++++++++-----------
src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc   | 12 ++--
src/interfaces/ecpg/test/pgtypeslib/num_test.pgc   | 10 +--
src/interfaces/ecpg/test/pgtypeslib/num_test2.pgc  | 26 +++----
src/interfaces/ecpg/test/sql/sqlda.pgc             |  2 +-
20 files changed, 189 insertions(+), 136 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add PGTYPESchar_free() to avoid cross-module problems on Windows
@ 2018-06-26 11:59  Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Thomas Munro @ 2018-06-26 11:59 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add PGTYPESchar_free() to avoid cross-module problems on Windows.

On Windows, it is sometimes important for corresponding malloc() and
free() calls to be made from the same DLL, since some build options can
result in multiple allocators being active at the same time.  For that
reason we already provided PQfreemem().  This commit adds a similar
function for freeing string results allocated by the pgtypes library.

Author: Takayuki Tsunakawa
Reviewed-by: Kyotaro Horiguchi
Discussion: https://postgr.es/m/0A3221C70F24FB45833433255569204D1F8AD5D6%40G01JPEXMBYT05

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3566873f21909397561418fab22c98332fa8b72a

Modified Files
--------------
doc/src/sgml/ecpg.sgml                             | 24 +++++--
src/interfaces/ecpg/include/Makefile               |  2 +-
src/interfaces/ecpg/include/pgtypes.h              | 17 +++++
src/interfaces/ecpg/include/pgtypes_date.h         |  1 +
src/interfaces/ecpg/include/pgtypes_interval.h     |  1 +
src/interfaces/ecpg/include/pgtypes_numeric.h      |  2 +
src/interfaces/ecpg/include/pgtypes_timestamp.h    |  1 +
src/interfaces/ecpg/pgtypeslib/common.c            | 10 +++
src/interfaces/ecpg/pgtypeslib/exports.txt         |  1 +
.../ecpg/test/expected/pgtypeslib-dt_test.c        | 84 +++++++++++-----------
.../ecpg/test/expected/pgtypeslib-dt_test2.c       | 12 ++--
.../ecpg/test/expected/pgtypeslib-num_test.c       | 10 +--
.../ecpg/test/expected/pgtypeslib-num_test2.c      | 26 +++----
.../ecpg/test/expected/preproc-outofscope.c        |  2 +
src/interfaces/ecpg/test/expected/sql-sqlda.c      |  4 +-
src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc    | 84 +++++++++++-----------
src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc   | 12 ++--
src/interfaces/ecpg/test/pgtypeslib/num_test.pgc   | 10 +--
src/interfaces/ecpg/test/pgtypeslib/num_test2.pgc  | 26 +++----
src/interfaces/ecpg/test/sql/sqlda.pgc             |  2 +-
20 files changed, 192 insertions(+), 139 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add PGTYPESchar_free() to avoid cross-module problems on Windows
@ 2018-06-26 11:59  Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Thomas Munro @ 2018-06-26 11:59 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add PGTYPESchar_free() to avoid cross-module problems on Windows.

On Windows, it is sometimes important for corresponding malloc() and
free() calls to be made from the same DLL, since some build options can
result in multiple allocators being active at the same time.  For that
reason we already provided PQfreemem().  This commit adds a similar
function for freeing string results allocated by the pgtypes library.

Author: Takayuki Tsunakawa
Reviewed-by: Kyotaro Horiguchi
Discussion: https://postgr.es/m/0A3221C70F24FB45833433255569204D1F8AD5D6%40G01JPEXMBYT05

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b5b973ef0ba736c7c002f0907014d3115471644e

Modified Files
--------------
doc/src/sgml/ecpg.sgml                             | 24 +++++--
src/interfaces/ecpg/include/Makefile               |  2 +-
src/interfaces/ecpg/include/pgtypes.h              | 17 +++++
src/interfaces/ecpg/include/pgtypes_date.h         |  1 +
src/interfaces/ecpg/include/pgtypes_interval.h     |  1 +
src/interfaces/ecpg/include/pgtypes_numeric.h      |  2 +
src/interfaces/ecpg/include/pgtypes_timestamp.h    |  1 +
src/interfaces/ecpg/pgtypeslib/common.c            | 10 +++
src/interfaces/ecpg/pgtypeslib/exports.txt         |  1 +
.../ecpg/test/expected/pgtypeslib-dt_test.c        | 84 +++++++++++-----------
.../ecpg/test/expected/pgtypeslib-dt_test2.c       | 12 ++--
.../ecpg/test/expected/pgtypeslib-num_test.c       | 10 +--
.../ecpg/test/expected/pgtypeslib-num_test2.c      | 26 +++----
.../ecpg/test/expected/preproc-outofscope.c        |  2 +
src/interfaces/ecpg/test/expected/sql-sqlda.c      |  4 +-
src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc    | 84 +++++++++++-----------
src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc   | 12 ++--
src/interfaces/ecpg/test/pgtypeslib/num_test.pgc   | 10 +--
src/interfaces/ecpg/test/pgtypeslib/num_test2.pgc  | 26 +++----
src/interfaces/ecpg/test/sql/sqlda.pgc             |  2 +-
20 files changed, 192 insertions(+), 139 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add PGTYPESchar_free() to avoid cross-module problems on Windows
@ 2018-06-26 11:59  Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Thomas Munro @ 2018-06-26 11:59 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add PGTYPESchar_free() to avoid cross-module problems on Windows.

On Windows, it is sometimes important for corresponding malloc() and
free() calls to be made from the same DLL, since some build options can
result in multiple allocators being active at the same time.  For that
reason we already provided PQfreemem().  This commit adds a similar
function for freeing string results allocated by the pgtypes library.

Author: Takayuki Tsunakawa
Reviewed-by: Kyotaro Horiguchi
Discussion: https://postgr.es/m/0A3221C70F24FB45833433255569204D1F8AD5D6%40G01JPEXMBYT05

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3bc19d0d263c32c225a391e5275d6ba24dbc423c

Modified Files
--------------
doc/src/sgml/ecpg.sgml                             | 24 +++++--
src/interfaces/ecpg/include/Makefile               |  2 +-
src/interfaces/ecpg/include/pgtypes.h              | 17 +++++
src/interfaces/ecpg/include/pgtypes_date.h         |  1 +
src/interfaces/ecpg/include/pgtypes_interval.h     |  1 +
src/interfaces/ecpg/include/pgtypes_numeric.h      |  2 +
src/interfaces/ecpg/include/pgtypes_timestamp.h    |  1 +
src/interfaces/ecpg/pgtypeslib/common.c            | 10 +++
src/interfaces/ecpg/pgtypeslib/exports.txt         |  1 +
.../ecpg/test/expected/pgtypeslib-dt_test.c        | 84 +++++++++++-----------
.../ecpg/test/expected/pgtypeslib-dt_test2.c       | 12 ++--
.../ecpg/test/expected/pgtypeslib-num_test.c       | 10 +--
.../ecpg/test/expected/pgtypeslib-num_test2.c      | 26 +++----
.../ecpg/test/expected/preproc-outofscope.c        |  2 +
src/interfaces/ecpg/test/expected/sql-sqlda.c      |  4 +-
src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc    | 84 +++++++++++-----------
src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc   | 12 ++--
src/interfaces/ecpg/test/pgtypeslib/num_test.pgc   | 10 +--
src/interfaces/ecpg/test/pgtypeslib/num_test2.pgc  | 26 +++----
src/interfaces/ecpg/test/sql/sqlda.pgc             |  2 +-
20 files changed, 192 insertions(+), 139 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add PGTYPESchar_free() to avoid cross-module problems on Windows
@ 2018-06-26 12:00  Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Thomas Munro @ 2018-06-26 12:00 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add PGTYPESchar_free() to avoid cross-module problems on Windows.

On Windows, it is sometimes important for corresponding malloc() and
free() calls to be made from the same DLL, since some build options can
result in multiple allocators being active at the same time.  For that
reason we already provided PQfreemem().  This commit adds a similar
function for freeing string results allocated by the pgtypes library.

Author: Takayuki Tsunakawa
Reviewed-by: Kyotaro Horiguchi
Discussion: https://postgr.es/m/0A3221C70F24FB45833433255569204D1F8AD5D6%40G01JPEXMBYT05

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/db05d0b906be6dbf194ce594e0a0777ebdaf7e93

Modified Files
--------------
doc/src/sgml/ecpg.sgml                             | 24 +++++--
src/interfaces/ecpg/include/Makefile               |  2 +-
src/interfaces/ecpg/include/pgtypes.h              | 17 +++++
src/interfaces/ecpg/include/pgtypes_date.h         |  1 +
src/interfaces/ecpg/include/pgtypes_interval.h     |  1 +
src/interfaces/ecpg/include/pgtypes_numeric.h      |  2 +
src/interfaces/ecpg/include/pgtypes_timestamp.h    |  1 +
src/interfaces/ecpg/pgtypeslib/common.c            | 10 +++
src/interfaces/ecpg/pgtypeslib/exports.txt         |  1 +
.../ecpg/test/expected/pgtypeslib-dt_test.c        | 84 +++++++++++-----------
.../ecpg/test/expected/pgtypeslib-dt_test2.c       | 12 ++--
.../ecpg/test/expected/pgtypeslib-num_test.c       | 10 +--
.../ecpg/test/expected/pgtypeslib-num_test2.c      | 26 +++----
.../ecpg/test/expected/preproc-outofscope.c        |  2 +
src/interfaces/ecpg/test/expected/sql-sqlda.c      |  4 +-
src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc    | 84 +++++++++++-----------
src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc   | 12 ++--
src/interfaces/ecpg/test/pgtypeslib/num_test.pgc   | 10 +--
src/interfaces/ecpg/test/pgtypeslib/num_test2.pgc  | 26 +++----
src/interfaces/ecpg/test/sql/sqlda.pgc             |  2 +-
20 files changed, 192 insertions(+), 139 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add PGTYPESchar_free() to avoid cross-module problems on Windows
@ 2018-06-26 12:00  Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Thomas Munro @ 2018-06-26 12:00 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add PGTYPESchar_free() to avoid cross-module problems on Windows.

On Windows, it is sometimes important for corresponding malloc() and
free() calls to be made from the same DLL, since some build options can
result in multiple allocators being active at the same time.  For that
reason we already provided PQfreemem().  This commit adds a similar
function for freeing string results allocated by the pgtypes library.

Author: Takayuki Tsunakawa
Reviewed-by: Kyotaro Horiguchi
Discussion: https://postgr.es/m/0A3221C70F24FB45833433255569204D1F8AD5D6%40G01JPEXMBYT05

Branch
------
REL9_3_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/edabd8f5a4249b95db7421722f88e156c10c8a8e

Modified Files
--------------
doc/src/sgml/ecpg.sgml                             | 24 +++++--
src/interfaces/ecpg/include/Makefile               |  2 +-
src/interfaces/ecpg/include/pgtypes.h              | 17 +++++
src/interfaces/ecpg/include/pgtypes_date.h         |  1 +
src/interfaces/ecpg/include/pgtypes_interval.h     |  1 +
src/interfaces/ecpg/include/pgtypes_numeric.h      |  2 +
src/interfaces/ecpg/include/pgtypes_timestamp.h    |  1 +
src/interfaces/ecpg/pgtypeslib/common.c            | 10 +++
src/interfaces/ecpg/pgtypeslib/exports.txt         |  1 +
.../ecpg/test/expected/pgtypeslib-dt_test.c        | 84 +++++++++++-----------
.../ecpg/test/expected/pgtypeslib-dt_test2.c       | 12 ++--
.../ecpg/test/expected/pgtypeslib-num_test.c       | 10 +--
.../ecpg/test/expected/pgtypeslib-num_test2.c      | 26 +++----
.../ecpg/test/expected/preproc-outofscope.c        |  2 +
src/interfaces/ecpg/test/expected/sql-sqlda.c      |  4 +-
src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc    | 84 +++++++++++-----------
src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc   | 12 ++--
src/interfaces/ecpg/test/pgtypeslib/num_test.pgc   | 10 +--
src/interfaces/ecpg/test/pgtypeslib/num_test2.pgc  | 26 +++----
src/interfaces/ecpg/test/sql/sqlda.pgc             |  2 +-
20 files changed, 192 insertions(+), 139 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2018-06-26 12:00 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-06-18 06:34 pgsql: Add PGTYPESchar_free() to avoid cross-module problems on Windows Thomas Munro <tmunro@postgresql.org>
2018-06-26 11:59 pgsql: Add PGTYPESchar_free() to avoid cross-module problems on Windows Thomas Munro <tmunro@postgresql.org>
2018-06-26 11:59 pgsql: Add PGTYPESchar_free() to avoid cross-module problems on Windows Thomas Munro <tmunro@postgresql.org>
2018-06-26 11:59 pgsql: Add PGTYPESchar_free() to avoid cross-module problems on Windows Thomas Munro <tmunro@postgresql.org>
2018-06-26 12:00 pgsql: Add PGTYPESchar_free() to avoid cross-module problems on Windows Thomas Munro <tmunro@postgresql.org>
2018-06-26 12:00 pgsql: Add PGTYPESchar_free() to avoid cross-module problems on Windows Thomas Munro <tmunro@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox