Re: pgsql: Import changes from IMath versions (1.3, 1.29].

2019-02-16 Thread Tom Lane
Noah Misch writes: > Import changes from IMath versions (1.3, 1.29]. "dory" doesn't like this a bit. I think you need s/uint32_t/uint32/g and likewise for uint64. regards, tom lane

pgsql: Remove float8-small-is-zero regression test variant.

2019-02-16 Thread Andrew Gierth
Remove float8-small-is-zero regression test variant. Since this was also the variant used as an example in the docs, update the docs to use float4-misrounded-input as an example instead, since that is now the only remaining variant file. Branch -- master Details ---

pgsql: In imath.h, replace stdint.h usage with c.h equivalents.

2019-02-16 Thread Noah Misch
In imath.h, replace stdint.h usage with c.h equivalents. As things stood, buildfarm member dory failed. MSVC versions lacking stdint.h are unusable for building PostgreSQL, but pg_config.h.win32 doesn't know that. Even so, we support other systems lacking stdint.h, including buildfarm member

pgsql: Allow user control of CTE materialization, and change the defaul

2019-02-16 Thread Tom Lane
Allow user control of CTE materialization, and change the default behavior. Historically we've always materialized the full output of a CTE query, treating WITH as an optimization fence (so that, for example, restrictions from the outer query cannot be pushed into it). This is appropriate when

pgsql: Import changes from IMath versions (1.3, 1.29].

2019-02-16 Thread Noah Misch
Import changes from IMath versions (1.3, 1.29]. Upstream fixed bugs over the years, but none are confirmed to have affected pgcrypto. We're better off naively tracking upstream than reactively maintaining a twelve-year-old snapshot of upstream. Add a header comment describing the

pgsql: Fix PERMIT_DECLARATION_AFTER_STATEMENT initialization.

2019-02-16 Thread Noah Misch
Fix PERMIT_DECLARATION_AFTER_STATEMENT initialization. The defect caused a mere warning and only for gcc versions before 3.4.0. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/d1299aabbd0b4ae860078691b628dc6b90698039 Modified Files -- configure| 2

pgsql: Suppress another case of MSVC warning 4146.

2019-02-16 Thread Noah Misch
Suppress another case of MSVC warning 4146. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/faee6fae6d09fb5d8c809946a113eb70c2968892 Modified Files -- contrib/pgcrypto/imath.c | 8 1 file changed, 8 insertions(+)

pgsql: Fix previous MinGW fix.

2019-02-16 Thread Andrew Gierth
Fix previous MinGW fix. Definitions required for MinGW need to be outside #if _MSC_VER. Oops. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/79730e2a9bb1ce7837feddd16208ff2d9e490118 Modified Files -- src/include/port/win32_port.h | 10 +- 1

pgsql: Add DECLARE STATEMENT support to ECPG.

2019-02-16 Thread Michael Meskes
Add DECLARE STATEMENT support to ECPG. DECLARE STATEMENT is a statement that lets users declare an identifier pointing at a connection. This identifier will be used in other embedded dynamic SQL statement such as PREPARE, EXECUTE, DECLARE CURSOR and so on. When connecting to a non-default

Re: pgsql: Remove WITH OIDS support, change oid catalog column visibility.

2019-02-16 Thread Peter Eisentraut
On 2018-11-21 01:07, Andres Freund wrote: > Remove WITH OIDS support, change oid catalog column visibility. I think you may have accidentally duplicated a line in this patch: @@ -1602,20 +1602,9 @@ ExecFetchSlotHeapTupleDatum(TupleTableSlot *slot) void ExecInitResultTypeTL(PlanState