Allow libpgport to call memory allocation routines even though
Bruce Momjian <bruce@momjian.us>
Allow libpgport to call memory allocation routines even though CurrentMemoryContext is DLLIMPORT on Win32. Work around that by creating stubs in the backend for palloc/pstrdup. Also fix pg_dumpall to do proper quoting on Win32.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/mmgr/mcxt.c | modified | +36 −1 |
| src/bin/pg_dump/pg_dumpall.c | modified | +20 −2 |
| src/include/port.h | modified | +2 −1 |
| src/include/utils/palloc.h | modified | +6 −1 |
| src/port/dirmod.c | modified | +8 −1 |