Re: [COMMITTERS] pgsql: Remove secondary checkpoint

2017-11-07 Thread Michael Paquier
On Wed, Nov 8, 2017 at 4:43 AM, Tom Lane wrote: > Andres Freund writes: >> I think you misunderstand my point - I'm saying that pg_resetxlog should >> be able to force the use of older checkpoints, basically as a fallback >> to cases where the previous approach might actually have worked, not >>

Re: [COMMITTERS] pgsql: Stamp 9.2.24.

2017-11-06 Thread Michael Paquier
On Tue, Nov 7, 2017 at 7:39 AM, Tom Lane wrote: > Peter Geoghegan writes: >> Tom Lane wrote: >>> Stamp 9.2.24. > >> Uh, I thought 9.2 was EOL. > > Now it is ... 9.2.24 is the last of the 9.2-series, November being the last minor release after the 5-year community support window. -- Michael -

Re: [COMMITTERS] pgsql: Replace most usages of ntoh[ls] and hton[sl] with pg_bswap.h.

2017-10-01 Thread Michael Paquier
On Mon, Oct 2, 2017 at 8:08 AM, Andres Freund wrote: > Replace most usages of ntoh[ls] and hton[sl] with pg_bswap.h. > > All postgres internal usages are replaced, it's just libpq example > usages that haven't been converted. External users of libpq can't > generally rely on including postgres int

Re: [COMMITTERS] pgsql: Fix bogus size calculation introduced by commit cc5f81366.

2017-09-17 Thread Michael Paquier
On Mon, Sep 18, 2017 at 6:58 AM, Thomas Munro wrote: > While googling around trying to find where I could read Coverity's > output myself I was intrigued to see that https://scan.coverity.com > offers integration with Travis CI[1], which suggests the possibility > of automatically scanning all Com

Re: [COMMITTERS] pgsql: pg_receivewal: Improve verbose mode

2017-08-16 Thread Michael Paquier
On Wed, Aug 16, 2017 at 9:27 AM, Peter Eisentraut wrote: > pg_receivewal: Improve verbose mode > > Some informational messages showed up even if verbose mode was not > used. Move them to verbose mode. Perhaps this should be back-patched? It seems to me that this is an oversight from the beginnin

Re: [COMMITTERS] pgsql: Additional tests for subtransactions in recovery

2017-04-27 Thread Michael Paquier
On Thu, Apr 27, 2017 at 9:28 PM, Simon Riggs wrote: > Additional tests for subtransactions in recovery > > Tests for normal and prepared transactions > > Author: Nikhil Sontakke, placed in new test file by me +$node_slave->promote; +$node_slave->poll_query_until('postgres', + "SELECT NOT pg_is_

Re: [COMMITTERS] Vendor LLVM 4.0.

2017-04-01 Thread Michael Paquier
On Sat, Apr 1, 2017 at 5:27 PM, Thomas Munro wrote: > On Sat, Apr 1, 2017 at 8:41 PM, Andres Freund wrote: >> For the upcoming JIT support LLVM is required. To avoid issues with >> having to support multiple LLVM versions, add a vendored version of >> LLVM. >> >> The large size of LLVM makes thi

Re: [COMMITTERS] pgsql: Faster expression evaluation and targetlist projection.

2017-03-25 Thread Michael Paquier
On Sun, Mar 26, 2017 at 7:58 AM, David Rowley wrote: > On 26 March 2017 at 09:55, Thomas Munro wrote: >> On Sun, Mar 26, 2017 at 11:11 AM, Andres Freund wrote: >>> Faster expression evaluation and targetlist projection. >>> >>> This replaces the old, recursive tree-walk based evaluation, with >>

Re: [COMMITTERS] pgsql: Fix connection leak in DROP SUBSCRIPTION command.

2017-02-21 Thread Michael Paquier
On Wed, Feb 22, 2017 at 8:39 AM, Fujii Masao wrote: > On Wed, Feb 22, 2017 at 6:57 AM, Michael Paquier > wrote: >> On Wed, Feb 22, 2017 at 4:12 AM, Tom Lane wrote: >>> Fujii Masao writes: >>>> Fix connection leak in DROP SUBSCRIPTION command. >>>&g

Re: [COMMITTERS] pgsql: Fix connection leak in DROP SUBSCRIPTION command.

2017-02-21 Thread Michael Paquier
On Wed, Feb 22, 2017 at 4:12 AM, Tom Lane wrote: > Fujii Masao writes: >> Fix connection leak in DROP SUBSCRIPTION command. >> Previously the command forgot to close the connection to the publisher >> when it failed to drop the replication slot. > > If there's a bug here, this seems like an extre

Re: [COMMITTERS] pgsql: Add new function dsa_allocate0.

2017-02-16 Thread Michael Paquier
On Fri, Feb 17, 2017 at 12:03 PM, Thomas Munro wrote: > On Fri, Feb 17, 2017 at 11:34 AM, Thomas Munro > wrote: >> On Fri, Feb 17, 2017 at 7:02 AM, Robert Haas wrote: >>> http://git.postgresql.org/pg/commitdiff/9acb85597f1223ac26a5b19a9345849c43d0ff54 >> Hmm. This will segfault if you're out of

Re: [COMMITTERS] pgsql: Replace PostmasterRandom() with a stronger source, second attemp

2016-12-06 Thread Michael Paquier
On Wed, Dec 7, 2016 at 7:46 AM, Andres Freund wrote: > On 2016-12-05 11:44:37 +, Heikki Linnakangas wrote: >> Replace PostmasterRandom() with a stronger source, second attempt. > > Since this went in I've seen > 2016-12-06 14:42:17.005 PST [23658][] LOG: wrong key in cancel request for > pro

Re: [COMMITTERS] pgsql: Use latch instead of select() in walreceiver

2016-12-01 Thread Michael Paquier
On Fri, Dec 2, 2016 at 10:29 AM, Peter Eisentraut wrote: > Use latch instead of select() in walreceiver > > Replace use of poll()/select() by WaitLatchOrSocket(), which is more > portable and flexible. > > Also change walreceiver to use its procLatch instead of a custom latch. > > From: Petr Jelin

Re: [COMMITTERS] pgsql: Use OpenSSL EVP API for symmetric encryption in pgcrypto.

2016-10-17 Thread Michael Paquier
On Tue, Oct 18, 2016 at 6:28 AM, Tom Lane wrote: > Heikki Linnakangas writes: >> Use OpenSSL EVP API for symmetric encryption in pgcrypto. > > BTW, "narwhal" seems to have a problem with this. > Not very clear what, maybe an incompatibility with old openssl versions? Details are here: http://bui

Re: [COMMITTERS] pgsql: pg_ctl: Detect current standby state from pg_control

2016-09-25 Thread Michael Paquier
On Mon, Sep 26, 2016 at 12:54 AM, Tom Lane wrote: > Peter Eisentraut writes: >> pg_ctl: Detect current standby state from pg_control > > Coverity thinks that this patch introduced a bunch of > null-pointer-dereference hazards, and AFAICS it is right. > The change in get_controlfile()'s API is com

Re: [COMMITTERS] pgsql: Re-add translation markers that were lost

2016-09-20 Thread Michael Paquier
On Wed, Sep 21, 2016 at 1:56 AM, Peter Eisentraut wrote: > Re-add translation markers that were lost > > When win32security.c was moved from src/backend/port/win32/security.c, > the message writing function was changed from write_stderr to log_error, > but nls.mk was not updated. We could add log

Re: [COMMITTERS] pgsql: Add putenv support for msvcrt from Visual Studio 2013

2016-09-06 Thread Michael Paquier
On Tue, Sep 6, 2016 at 5:36 PM, Christian Ullrich wrote: > * Michael Paquier wrote: >> In order to avoid any problems with the load and unload windows, my >> bet goes for 0001, 0002 and 0003, with the last two patches merged >> together, 0001 being only a set of independe

Re: [COMMITTERS] pgsql: Add putenv support for msvcrt from Visual Studio 2013

2016-09-06 Thread Michael Paquier
On Thu, Sep 1, 2016 at 4:03 PM, Christian Ullrich wrote: > * Michael Paquier wrote: > >> On Wed, Apr 27, 2016 at 2:39 AM, Christian Ullrich >> wrote: > >>> * Christian Ullrich wrote: > >> And actually, by looking at those patches, isn't it a dange

Re: [COMMITTERS] pgsql: Add putenv support for msvcrt from Visual Studio 2013

2016-08-31 Thread Michael Paquier
On Wed, Apr 27, 2016 at 2:39 AM, Christian Ullrich wrote: > * Christian Ullrich wrote: > >> wrong even without considering the debug/release split. If we load a >> compiled extension built with a CRT we have not seen yet, _after_ the >> first call to pgwin32_putenv(), that module's CRT's view of i

Re: [COMMITTERS] Re: pgsql: Convert contrib/seg's bool-returning SQL functions to V1 call co

2016-04-26 Thread Michael Paquier
On Wed, Apr 27, 2016 at 12:04 PM, Andres Freund wrote: > On 2016-04-26 22:59:44 -0400, Tom Lane wrote: >> What's the argument that it makes debugging harder? Especially if >> you aren't using it? > > If you try to write a V1 function, but forget or mistype/rename the > function in PG_FUNCTION_INF

Re: [COMMITTERS] pgsql: Use GRANT system to manage access to sensitive functions

2016-04-06 Thread Michael Paquier
On Thu, Apr 7, 2016 at 10:45 AM, Stephen Frost wrote: > Use GRANT system to manage access to sensitive functions > > Now that pg_dump will properly dump out any ACL changes made to > functions which exist in pg_catalog, switch to using the GRANT system > to manage access to those functions. > > Th

Re: [COMMITTERS] pgsql: Generic Messages for Logical Decoding

2016-04-06 Thread Michael Paquier
On Wed, Apr 6, 2016 at 6:08 PM, Simon Riggs wrote: > Generic Messages for Logical Decoding > > API and mechanism to allow generic messages to be inserted into WAL that are > intended to be read by logical decoding plugins. This commit adds an optional > new callback to the logical decoding API. >

Re: [HACKERS] [COMMITTERS] pgsql: Avoid archiving XLOG_RUNNING_XACTS on idle server

2016-04-06 Thread Michael Paquier
On Wed, Apr 6, 2016 at 9:27 PM, Andres Freund wrote: > On 2016-04-06 13:11:40 +0100, Simon Riggs wrote: >> On 6 April 2016 at 10:09, Andres Freund wrote: >> > On 2016-04-06 10:04:42 +0100, Simon Riggs wrote: >> > The issue there is that we continue to issue checkpoints if the only >> > activity s

Re: [COMMITTERS] pgsql: Avoid archiving XLOG_RUNNING_XACTS on idle server

2016-04-04 Thread Michael Paquier
On Mon, Apr 4, 2016 at 4:50 PM, Andres Freund wrote: > On 2016-04-04 08:44:47 +0100, Simon Riggs wrote: >> That patch does exactly the same thing as the patch you prefer, just >> does it differently; > > No, it doesn't; as explained above. FWIW, I vote also for reverting this patch. This has been

Re: [COMMITTERS] pgsql: Avoid archiving XLOG_RUNNING_XACTS on idle server

2016-04-03 Thread Michael Paquier
ed by Laurence Rowe, investigated in detail by Michael >> Paquier, >> though this is not his proposed fix. >> 20151016203031.3019.72...@wrigleys.postgresql.org >> >> Simple non-invasive patch to allow later backpatch to 9.4 and 9.5 Well... > Uh. This is wrong. F

Re: [COMMITTERS] pgsql: Enable logical slots to follow timeline switches

2016-03-31 Thread Michael Paquier
On Thu, Mar 31, 2016 at 8:45 AM, Alvaro Herrera wrote: > Tom Lane wrote: >> Alvaro Herrera writes: >> > Enable logical slots to follow timeline switches >> >> Buildfarm doesn't like this one bit :-( > > Argh, forgot the alternate expected file when the needed feature is > disabled. Will fix. ha

Re: [COMMITTERS] pgsql: Add new replication mode synchronous_commit = 'remote_apply'.

2016-03-29 Thread Michael Paquier
On Wed, Mar 30, 2016 at 10:39 AM, Robert Haas wrote: > On Tue, Mar 29, 2016 at 9:37 PM, Michael Paquier > wrote: >> On Wed, Mar 30, 2016 at 10:31 AM, Robert Haas wrote: >>> Add new replication mode synchronous_commit = 'remote_apply'. >>> >>> I

Re: [COMMITTERS] pgsql: Add new replication mode synchronous_commit = 'remote_apply'.

2016-03-29 Thread Michael Paquier
ast avoids any extra replies for > people not using the feature at all. > > Thomas Munro, reviewed by Michael Paquier and by me. Some additional > tweaks by me. The commit message does not directly mention that the spec of walrcv_receive has been changed in a backward-incompatible way so

Re: [COMMITTERS] pgsql: Best-guess attempt at fixing MSVC build for 68ab8e8ba4a471d9.

2016-03-21 Thread Michael Paquier
On Tue, Mar 22, 2016 at 10:20 AM, Andrew Dunstan wrote: > > > On 03/21/2016 09:25 AM, Tom Lane wrote: >> >> Andres Freund writes: >>> >>> On 2016-03-21 22:38:50 +1300, David Rowley wrote: Perl is not my native tongue, but after a little study and some testing on a windows machine,

Re: [COMMITTERS] pgsql: Convert psql's flex lexer to be re-entrant, and make it compile

2016-03-18 Thread Michael Paquier
On Sat, Mar 19, 2016 at 10:22 AM, Tom Lane wrote: > Also, stop compiling psqlscan as part of mainloop.c, and make it a > standalone build target instead. This is a lot cleaner than before, though > it doesn't really change much in practice as of this commit. (I'm not sure > whether the MSVC buil

Re: [COMMITTERS] pgsql: Don't vacuum all-frozen pages.

2016-03-10 Thread Michael Paquier
On Fri, Mar 11, 2016 at 2:08 AM, Amit Langote wrote: > On 2016/03/11 8:19, Peter Geoghegan wrote: >> On Thu, Mar 10, 2016 at 1:22 PM, Andres Freund wrote: >>> Yeha! >> >> Fantastic effort, particularly from Masahiko. Well done. > > +1! Yuhu. -- Michael -- Sent via pgsql-committers mailing li

Re: [COMMITTERS] pgsql: Checkpoint sorting and balancing.

2016-03-10 Thread Michael Paquier
On Fri, Mar 11, 2016 at 2:29 AM, Andres Freund wrote: > Checkpoint sorting and balancing. +1. -- Michael -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers

Re: [COMMITTERS] pgsql: Add pg_size_bytes() to parse human-readable size strings.

2016-02-20 Thread Michael Paquier
On Sat, Feb 20, 2016 at 7:17 PM, Dean Rasheed wrote: > On 20 February 2016 at 10:12, Michael Paquier > wrote: >> Happy first commit. > > Arg. Not so much. > > Looks like I broke something -- looking into it now :-( The terabyte conversion is at fault: Expected: ! -1tb

Re: [COMMITTERS] pgsql: Add pg_size_bytes() to parse human-readable size strings.

2016-02-20 Thread Michael Paquier
On Sat, Feb 20, 2016 at 7:12 PM, Michael Paquier wrote: > On Sat, Feb 20, 2016 at 7:07 PM, Dean Rasheed > wrote: >> Add pg_size_bytes() to parse human-readable size strings. >> >> This will parse strings in the format produced by pg_size_pretty() and >> retu

Re: [COMMITTERS] pgsql: Add pg_size_bytes() to parse human-readable size strings.

2016-02-20 Thread Michael Paquier
al_relation_size(oid) > pg_size_bytes('10 GB')". > > Author: Pavel Stehule with various improvements by Vitaly Burovoy > Discussion: > http://www.postgresql.org/message-id/cafj8prd-tgodknxdygecza4on01_urqprwf-8ldkse-6bdh...@mail.gmail.com > Reviewed-by: Vitaly Burovoy

Re: [COMMITTERS] pgsql: Support parallel joins, and make related improvements.

2016-01-20 Thread Michael Paquier
On Thu, Jan 21, 2016 at 7:59 AM, Bruce Momjian wrote: > On Wed, Jan 20, 2016 at 07:41:07PM +, Robert Haas wrote: >> Support parallel joins, and make related improvements. > > Wow, that is big news! Yuhu! -- Michael -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org

Re: [COMMITTERS] pgsql: some bullshit

2015-12-21 Thread Michael Paquier
On Tue, Dec 22, 2015 at 8:16 AM, Alvaro Herrera wrote: > Alvaro Herrera wrote: >> some bullshit > > This commit was supposed to be squashed with the next one --- hence > the, err, not-terribly-descriptive commit message. This mistake may > cause future "git bisect" runs to give spurious failures,

Re: [COMMITTERS] pgsql: Fix bug leading to restoring unlogged relations from empty files

2015-12-13 Thread Michael Paquier
On Mon, Dec 14, 2015 at 2:26 PM, Peter Eisentraut wrote: > the call to LWLockHeldByMe() is useless. Yes, but it should be an Assert. I guess that Andres is on it.. -- Michael -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http

Re: [COMMITTERS] pgsql: Code and docs review for multiple -c and -f options in psql.

2015-12-13 Thread Michael Paquier
On Mon, Dec 14, 2015 at 11:16 AM, Michael Paquier wrote: > - cell = (SimpleActionListCell *) > - pg_malloc(offsetof(SimpleActionListCell, val) + vallen + 1); > Thanks! Among all those things this bit is a bit shameful.. (I am the one at the origin of that FWIW) -- Michael --

Re: [COMMITTERS] pgsql: Code and docs review for multiple -c and -f options in psql.

2015-12-13 Thread Michael Paquier
On Mon, Dec 14, 2015 at 4:52 AM, Tom Lane wrote: > Code and docs review for multiple -c and -f options in psql. > > Commit d5563d7df94488bf drew complaints from Coverity, which quite > correctly complained that one copy of each -c or -f string was being > leaked. What's more, simple_action_list_a

Re: [COMMITTERS] pgsql: pg_rewind: Don't error if the two clusters are already on the sa

2015-12-11 Thread Michael Paquier
On Sat, Dec 12, 2015 at 9:11 AM, Tom Lane wrote: > Peter Eisentraut writes: >> pg_rewind: Don't error if the two clusters are already on the same timeline >> This previously resulted in an error and a nonzero exit status, but >> after discussion this should rather be a noop with a zero exit statu

Re: [COMMITTERS] pgsql: Refactor Perl test code

2015-12-02 Thread Michael Paquier
On Thu, Dec 3, 2015 at 8:38 AM, Tom Lane wrote: > Test Summary Report > --- > t/001_initdb.pl (Wstat: 6400 Tests: 8 Failed: 0) > Non-zero exit status: 25 > Parse errors: Bad plan. You planned 14 tests but ran 8. > Files=1, Tests=8, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.08

Re: [COMMITTERS] pgsql: libpq: Notice errors a backend may have sent just before dying.

2015-11-12 Thread Michael Paquier
On Fri, Nov 13, 2015 at 1:54 AM, Tom Lane wrote: > I wrote: >> After looking around, I suspect what actually happened in your test >> was that we kept pumping pqReadData until it realized it was seeing EOF, >> whereupon it did pqDropConnection(), and guess what that does: > >> /* Discard any

Re: [COMMITTERS] pgsql: Generate parallel sequential scan plans in simple cases.

2015-11-11 Thread Michael Paquier
On Thu, Nov 12, 2015 at 4:06 AM, Joe Conway wrote: > On 11/11/2015 10:54 AM, Robert Haas wrote: >> On Wed, Nov 11, 2015 at 10:35 AM, Magnus Hagander >> wrote: >>> On Wed, Nov 11, 2015 at 4:32 PM, Simon Riggs wrote: On 11 November 2015 at 14:03, Robert Haas wrote: > Generate parallel s

Re: [COMMITTERS] pgsql: Add missing_ok option to the SQL functions for reading files.

2015-08-28 Thread Michael Paquier
On Fri, Aug 28, 2015 at 9:39 PM, Bruce Momjian wrote: > On Sun, Jul 5, 2015 at 08:44:41PM +0900, Michael Paquier wrote: >> On Mon, Jun 29, 2015 at 3:39 AM, Heikki Linnakangas >> wrote: >> > Add missing_ok option to the SQL functions for reading files. >> > >&

Re: [COMMITTERS] pgsql: Reduce lock levels for ALTER TABLE SET autovacuum storage option

2015-08-15 Thread Michael Paquier
On Fri, Aug 14, 2015 at 10:20 PM, Simon Riggs wrote: > Reduce lock levels for ALTER TABLE SET autovacuum storage options > > Reduce lock levels down to ShareUpdateExclusiveLock for all autovacuum-related > relation options when setting them using ALTER TABLE. > > Add infrastructure to allow varyin

Re: [COMMITTERS] pgsql: Allow pg_create_physical_replication_slot() to reserve WAL.

2015-08-14 Thread Michael Paquier
On Fri, Aug 14, 2015 at 3:50 PM, Andres Freund wrote: > On 2015-08-14 15:32:17 +0900, Michael Paquier wrote: >> Why hasn't this addition been spread as well in the replication >> protocol? It seems to me that most of the refactoring work has been >> done with Replicati

Re: [COMMITTERS] pgsql: Allow pg_create_physical_replication_slot() to reserve WAL.

2015-08-13 Thread Michael Paquier
On Tue, Aug 11, 2015 at 7:47 PM, Andres Freund wrote: > Allow pg_create_physical_replication_slot() to reserve WAL. > > When creating a physical slot it's often useful to immediately reserve > the current WAL position instead of only doing after the first feedback > message arrives. That e.g. allo

Re: [COMMITTERS] pgsql: This routine was calling ecpg_alloc to allocate to memory but di

2015-08-12 Thread Michael Paquier
On Wed, Aug 12, 2015 at 8:59 PM, Michael Meskes wrote: > On 23.07.2015 09:19, Michael Paquier wrote: >> On Thu, Feb 5, 2015 at 11:14 PM, Michael Meskes >> wrote: >>> This routine was calling ecpg_alloc to allocate to memory but did not >>> actually che

Re: [COMMITTERS] pgsql: Optionally don't error out due to preexisting slots in commandli

2015-08-11 Thread Michael Paquier
On Mon, Jul 13, 2015 at 5:17 AM, Andres Freund wrote: > Optionally don't error out due to preexisting slots in commandline utilities. > > pg_receivexlog and pg_recvlogical error out when --create-slot is > specified and a slot with the same name already exists. In some cases, > especially with pg_

Re: [COMMITTERS] pgsql: Fix pg_rewind when pg_xlog is a symlink.

2015-08-03 Thread Michael Paquier
On Mon, Aug 3, 2015 at 10:37 PM, Heikki Linnakangas wrote: > That's only on master, though. The TAP tests don't run on Windows in 9.5 > anyway. Oops, yes I got mistaken by the commit on 9.5. > I guess the pg_rewind tests used to work, but we didn't really advertise or > make it easy to run it, so

Re: [COMMITTERS] pgsql: Fix pg_rewind when pg_xlog is a symlink.

2015-08-03 Thread Michael Paquier
On Mon, Aug 3, 2015 at 9:34 PM, Heikki Linnakangas wrote: > Fix pg_rewind when pg_xlog is a symlink. > > pg_xlog is often a symlink, typically to a different filesystem. Don't > get confused and comlain about by that, and just always pretend that it's a > normal directory, even if it's really a sy

Re: [COMMITTERS] pgsql: pg_basebackup: Add tests for -X option

2015-07-28 Thread Michael Paquier
On Wed, Jul 29, 2015 at 9:34 AM, Peter Eisentraut wrote: > pg_basebackup: Add tests for -X option One thing that I noticed after more tests is that actually the LSN position restart_lsn is not necessarily 8-character long as this tests, but it can be 7-character length as well: like($lsn, qr!^0/[

Re: [COMMITTERS] pgsql: This routine was calling ecpg_alloc to allocate to memory but di

2015-07-23 Thread Michael Paquier
On Thu, Feb 5, 2015 at 11:14 PM, Michael Meskes wrote: > This routine was calling ecpg_alloc to allocate to memory but did not > actually check the returned pointer allocated, potentially NULL which > could be the result of a malloc call. > > Issue noted by Coverity, fixed by

Re: [COMMITTERS] pgsql: pg_upgrade: fix one-byte per empty db memory leak

2015-07-21 Thread Michael Paquier
On Tue, Jul 21, 2015 at 10:29 PM, Alvaro Herrera wrote: > Michael Paquier wrote: >> On Sat, Jan 10, 2015 at 2:12 AM, Bruce Momjian wrote: >> > pg_upgrade: fix one-byte per empty db memory leak >> > >> > Report by Tatsuo Ishii, Coverity >> >> S

Re: [COMMITTERS] pgsql: pg_upgrade: fix one-byte per empty db memory leak

2015-07-21 Thread Michael Paquier
On Sat, Jan 10, 2015 at 2:12 AM, Bruce Momjian wrote: > pg_upgrade: fix one-byte per empty db memory leak > > Report by Tatsuo Ishii, Coverity Shouldn't this commit be backpatched where needed.? -- Michael -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make ch

Re: [COMMITTERS] pgsql: vacuumlo: Avoid unlikely memory leak.

2015-07-21 Thread Michael Paquier
On Thu, Jan 15, 2015 at 5:18 AM, Robert Haas wrote: > vacuumlo: Avoid unlikely memory leak. > > Spotted by Coverity. This isn't likely to matter in practice, but > there's no harm in fixing it. Coming back to this one, shouldn't this commit be backpatched? -- Michael -- Sent via pgsql-commit

Re: [COMMITTERS] pgsql: Retain comments on indexes and constraints at ALTER TABLE ... TY

2015-07-17 Thread Michael Paquier
On Fri, Jul 17, 2015 at 11:16 PM, Kevin Grittner wrote: > Heikki Linnakangas wrote: > >> This fixes bug #13126, reported by Kirill Simonov. > > It looks like you missed something with the addition of > AT_ReAddComment: > > test_ddl_deparse.c:80:11: warning: enumeration value 'AT_ReAddComment' not

Re: [COMMITTERS] pgsql: Retain comments on indexes and constraints at ALTER TABLE ... TY

2015-07-14 Thread Michael Paquier
On Tue, Jul 14, 2015 at 10:02 PM, Tom Lane wrote: > Heikki Linnakangas writes: >> Retain comments on indexes and constraints at ALTER TABLE ... TYPE ... > > One or the other of these patches has broken the majority of the > buildfarm. Some ORDER BY clauses are missing to make the output consiste

Re: [COMMITTERS] pgsql: Add missing_ok option to the SQL functions for reading files.

2015-07-05 Thread Michael Paquier
On Mon, Jun 29, 2015 at 3:39 AM, Heikki Linnakangas wrote: > Add missing_ok option to the SQL functions for reading files. > > This makes it possible to use the functions without getting errors, if there > is a chance that the file might be removed or renamed concurrently. > pg_rewind needs to do

Re: [COMMITTERS] pgsql: Run the C portions of guc-file.l through pgindent.

2015-06-28 Thread Michael Paquier
On Mon, Jun 29, 2015 at 9:49 AM, Tom Lane wrote: > Run the C portions of guc-file.l through pgindent. > > Yeah, I know, pretty anal-retentive of me. But we oughta find some > way to automate this for the .y and .l files. .y files may be tricky and .l files less. Still one good way to test such t

Re: [COMMITTERS] pgsql: Fixed some memory leaks in ECPG.

2015-06-13 Thread Michael Paquier
On Sat, Jun 13, 2015 at 6:06 PM, Michael Meskes wrote: > On Sat, Jun 13, 2015 at 12:21:49PM +0900, Michael Paquier wrote: >> Shouldn't this commit be cherry-picked on back-branches? > > Yes and it will, I'm currently working on it. I somehow got into the habbit > of do

Re: [COMMITTERS] pgsql: Fixed some memory leaks in ECPG.

2015-06-12 Thread Michael Paquier
On Fri, Jun 12, 2015 at 10:05 PM, Michael Meskes wrote: > Fixed some memory leaks in ECPG. > > Patch by Michael Paquier Shouldn't this commit be cherry-picked on back-branches? -- Michael -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make c

Re: [COMMITTERS] pgsql: Fix intoasc() in Informix compat lib. This function used to be a

2015-06-12 Thread Michael Paquier
On Fri, Jun 12, 2015 at 10:05 PM, Michael Meskes wrote: > Fix intoasc() in Informix compat lib. This function used to be a noop. Shouldn't this commit be cherry-picked on back-branches? -- Michael -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to y

Re: [COMMITTERS] pgsql: pgindent: more doc updates for skipping __asm__ files

2015-05-24 Thread Michael Paquier
On Mon, May 25, 2015 at 10:51 AM, Bruce Momjian wrote: > pgindent: more doc updates for skipping __asm__ files s/they contains/they contain/. -- Michael -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org

Re: [COMMITTERS] pgsql: Recognize "REGRESS_OPTS += ..." syntax in MSVC build scripts.

2015-05-18 Thread Michael Paquier
On Tue, May 19, 2015 at 2:40 AM, Tom Lane wrote: > Recognize "REGRESS_OPTS += ..." syntax in MSVC build scripts. > > Necessitated by commit b14cf229f4bd7238be2e31d873dc5dd241d3871e. > Per buildfarm. Perhaps \+? could be spread to REGRESS as well in fetchTests? -- Michael -- Sent via pgsql-com

Re: [COMMITTERS] pgsql: Add pg_audit, an auditing extension

2015-05-15 Thread Michael Paquier
On Sat, May 16, 2015 at 4:44 AM, Stephen Frost wrote: > Fujii, > > * Fujii Masao (masao.fu...@gmail.com) wrote: >> pg_audit uses 1.0.0 as its version number. But, is the third digit really >> required? Why? We usually uses the version number with two digits in >> contrib modules. > > I have to adm

Re: [COMMITTERS] pgsql: contrib/tsm_system_time

2015-05-15 Thread Michael Paquier
On Sat, May 16, 2015 at 5:28 AM, Robert Haas wrote: > On Fri, May 15, 2015 at 3:32 PM, Simon Riggs wrote: >> contrib/tsm_system_time > > I don't want to be overly critical here, but I find that a pretty > worthless commit message. And there is no documentation. -- Michael -- Sent via pgsql-c

Re: [COMMITTERS] pgsql: Separate block sampling functions

2015-05-15 Thread Michael Paquier
On Fri, May 15, 2015 at 8:44 PM, Andrew Dunstan wrote: > > On 05/15/2015 06:04 AM, Simon Riggs wrote: >> >> On 15 May 2015 at 04:59, Tom Lane > > wrote: >> >> The difference there was that that was specifically adding a new >> feature >> of value to FDWs. Th

Re: [COMMITTERS] pgsql: Separate block sampling functions

2015-05-14 Thread Michael Paquier
On Fri, May 15, 2015 at 12:22 PM, Tom Lane wrote: > Michael Paquier writes: >> On Fri, May 15, 2015 at 12:03 PM, Simon Riggs wrote: >>> On 15 May 2015 at 03:50, Tom Lane wrote: >>>> Simon Riggs writes: >>>>> Separate block sampling functions &

Re: [COMMITTERS] pgsql: Separate block sampling functions

2015-05-14 Thread Michael Paquier
On Fri, May 15, 2015 at 12:12 PM, Simon Riggs wrote: > On 15 May 2015 at 04:06, Michael Paquier wrote: >> >> On Fri, May 15, 2015 at 12:03 PM, Simon Riggs >> wrote: >> > On 15 May 2015 at 03:50, Tom Lane wrote: >> >> >> >> Simon Ri

Re: [COMMITTERS] pgsql: Separate block sampling functions

2015-05-14 Thread Michael Paquier
On Fri, May 15, 2015 at 12:03 PM, Simon Riggs wrote: > On 15 May 2015 at 03:50, Tom Lane wrote: >> >> Simon Riggs writes: >> > Separate block sampling functions >> >> This patch broke buildfarm member crake. > > > OK, thanks. I missed that amongst the other unrelated failures. Looking now. This

Re: [COMMITTERS] pgsql: Allow on-the-fly capture of DDL event details

2015-05-12 Thread Michael Paquier
On Wed, May 13, 2015 at 12:31 AM, Alvaro Herrera wrote: > Michael Paquier wrote: > >> Mind share more details about that? How would you detect that a given >> test in serial_schedule needs to be considered by test_ddl_deparse >> automatically? WIth a new type of keyword

Re: [COMMITTERS] pgsql: Allow on-the-fly capture of DDL event details

2015-05-11 Thread Michael Paquier
On Tue, May 12, 2015 at 1:18 PM, Michael Paquier wrote: > On Tue, May 12, 2015 at 1:05 PM, Alvaro Herrera > wrote: >> Michael Paquier wrote: >>> On Tue, May 12, 2015 at 11:43 AM, Michael Paquier >>> wrote: >>> > On Tue, May 12, 2015 at 11:37 AM, A

Re: [COMMITTERS] pgsql: Allow on-the-fly capture of DDL event details

2015-05-11 Thread Michael Paquier
On Tue, May 12, 2015 at 1:05 PM, Alvaro Herrera wrote: > Michael Paquier wrote: >> On Tue, May 12, 2015 at 11:43 AM, Michael Paquier >> wrote: >> > On Tue, May 12, 2015 at 11:37 AM, Alvaro Herrera >> > wrote: >> >> Michael Paquier wrote: >>

Re: [COMMITTERS] pgsql: Allow on-the-fly capture of DDL event details

2015-05-11 Thread Michael Paquier
On Tue, May 12, 2015 at 11:43 AM, Michael Paquier wrote: > On Tue, May 12, 2015 at 11:37 AM, Alvaro Herrera > wrote: >> Michael Paquier wrote: >>> On Tue, May 12, 2015 at 7:16 AM, Alvaro Herrera >>> wrote: >> Not sure what's the real fix here .. > &

Re: [COMMITTERS] pgsql: Allow on-the-fly capture of DDL event details

2015-05-11 Thread Michael Paquier
On Tue, May 12, 2015 at 11:37 AM, Alvaro Herrera wrote: > Michael Paquier wrote: >> On Tue, May 12, 2015 at 7:16 AM, Alvaro Herrera >> wrote: >> > Allow on-the-fly capture of DDL event details >> > >> > This feature lets user code inspect and

Re: [COMMITTERS] pgsql: Allow on-the-fly capture of DDL event details

2015-05-11 Thread Michael Paquier
On Tue, May 12, 2015 at 7:16 AM, Alvaro Herrera wrote: > Allow on-the-fly capture of DDL event details > > This feature lets user code inspect and take action on DDL events. > Whenever a ddl_command_end event trigger is installed, DDL actions > executed are saved to a list which can be inspected d

Re: [COMMITTERS] pgsql: Add support for INSERT ... ON CONFLICT DO NOTHING/UPDATE.

2015-05-07 Thread Michael Paquier
On Fri, May 8, 2015 at 1:09 PM, Andres Freund wrote: > On May 7, 2015 9:07:55 PM PDT, Michael Paquier > wrote: >>On Fri, May 8, 2015 at 12:43 PM, Andres Freund >>wrote: >>> Add support for INSERT ... ON CONFLICT DO NOTHING/UPDATE. >> >>magpie is complai

Re: [COMMITTERS] pgsql: Add support for INSERT ... ON CONFLICT DO NOTHING/UPDATE.

2015-05-07 Thread Michael Paquier
On Fri, May 8, 2015 at 12:43 PM, Andres Freund wrote: > Add support for INSERT ... ON CONFLICT DO NOTHING/UPDATE. magpie is complaining: http://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=magpie&dt=2015-05-08%2003%3A45%3A15 And I can reproduce the failure as well on my OSX laptop at least. --

Re: [COMMITTERS] pgsql: Move interpreter shared library detection to configure

2015-05-01 Thread Michael Paquier
On Sat, May 2, 2015 at 10:39 AM, Peter Eisentraut wrote: > Move interpreter shared library detection to configure > > For building PL/Perl, PL/Python, and PL/Tcl, we need a shared library of > libperl, libpython, and libtcl, respectively. Previously, this was > checked in the makefiles, skipping

Re: [COMMITTERS] pgsql: Copy editing of the replication origins patch.

2015-05-01 Thread Michael Paquier
On Fri, May 1, 2015 at 7:26 PM, Andres Freund wrote: > Copy editing of the replication origins patch. > > Michael Paquier and myself. -* Needs to fit into a uint16, so we don't waste too much space in WAL +* Needs to fit into an uint16, so we don't waste to

Re: [COMMITTERS] pgsql: Introduce replication progress tracking infrastructure.

2015-04-29 Thread Michael Paquier
On Thu, Apr 30, 2015 at 2:37 AM, Andres Freund wrote: > Introduce replication progress tracking infrastructure. > [...] Some comments about the docs: 1) "the the": + +Create a replication origin with the the passed in external +name, and create an internal id for it. +

Re: [COMMITTERS] pgsql: Add transforms feature

2015-04-28 Thread Michael Paquier
On Tue, Apr 28, 2015 at 10:01 AM, Michael Paquier wrote: > On Tue, Apr 28, 2015 at 9:55 AM, Andrew Dunstan wrote: >> w.r.t MSVC builds, it looks like we need entries in $contrib_extraincludes >> in src/tools/msvc/Mkvcbuild.pm at the very least. > > If our goal is to put back

Re: [COMMITTERS] pgsql: Add transforms feature

2015-04-27 Thread Michael Paquier
On Tue, Apr 28, 2015 at 9:55 AM, Andrew Dunstan wrote: > w.r.t MSVC builds, it looks like we need entries in $contrib_extraincludes > in src/tools/msvc/Mkvcbuild.pm at the very least. If our goal is to put back to green the Windows nodes as quick as possible, we could bypass their build this way ,

Re: [COMMITTERS] pgsql: Add transforms feature

2015-04-26 Thread Michael Paquier
On Mon, Apr 27, 2015 at 1:36 AM, Tom Lane wrote: > Peter Eisentraut writes: >> Add transforms feature > > I don't know why this patch is fooling around with compile/link flags, > but it's broken at least prairiedog and some of the Windows critters. It breaks as well on all the Windows machines u

Re: [COMMITTERS] pgsql: Make the pg_rewind regression tests more robust on slow systems.

2015-04-22 Thread Michael Paquier
On Wed, Apr 22, 2015 at 8:37 PM, Heikki Linnakangas wrote: > Make the pg_rewind regression tests more robust on slow systems. > > There were a couple of hard-coded sleeps in the tests: to wait for standby > to catch up with master, and to wait for promotion with "pg_ctl promote" > to complete. Ins

Re: [COMMITTERS] pgsql: Add missing installcheck target to pg_rewind's Makefile

2015-04-21 Thread Michael Paquier
On Wed, Apr 22, 2015 at 5:38 AM, Tom Lane wrote: > (I chanced to notice this while wondering why hamster is failing on > this test. I can't reproduce the failure locally, but ...) > With a very slow environment you will be able to reproduce the failure. -- Michael

Re: [COMMITTERS] pgsql: Move pg_test_fsync from contrib/ to src/bin/

2015-04-19 Thread Michael Paquier
On Mon, Apr 20, 2015 at 11:39 AM, Peter Eisentraut wrote: > Move pg_test_fsync from contrib/ to src/bin/ Point of detail that I just noticed: wouldn't it be better to have a header in pg_test_fsync.c of a shape similar to the other files. Now there is only that: /* *pg_test_fsync.c *

Re: [COMMITTERS] pgsql: Error out in pg_rewind if lstat() fails.

2015-04-15 Thread Michael Paquier
On Thu, Apr 16, 2015 at 5:15 AM, Heikki Linnakangas wrote: > Error out in pg_rewind if lstat() fails. > > A "file not found" is expected if the source server is running, so don't > complain about that. But any other error is definitely not expected. Nitpicking: strings of pg_fatal need to have a

Re: [COMMITTERS] pgsql: Mark the second argument of pg_log as the translatable string in

2015-04-15 Thread Michael Paquier
On Wed, Apr 15, 2015 at 4:55 PM, Heikki Linnakangas wrote: > On 04/15/2015 06:41 AM, Fujii Masao wrote: >> Another question is; should we output the progress report to stderr rather >> than stdout? I thought this because I found that pg_basebackup reports >> the progress to stderr. > > > Yeah, prob

Re: [COMMITTERS] pgsql: Fix multiple bugs and infelicities in pg_rewind.

2015-04-12 Thread Michael Paquier
On Mon, Mar 30, 2015 at 9:02 AM, Tom Lane wrote: > Fix multiple bugs and infelicities in pg_rewind. > > Bugs all spotted by Coverity, including wrong realloc() size request > and memory leaks. Cosmetic improvements by me. > > The usage of the global variable "filemap" here is still pretty awful,

Re: [COMMITTERS] pgsql: Mark the second argument of pg_log as the translatable string in

2015-04-11 Thread Michael Paquier
On Sun, Apr 12, 2015 at 10:17 AM, Alvaro Herrera wrote: > What pg_basebackup's progress_report() does is have the message in the > translatable part not include the \r; the \r is in a separate fprintf() > call. Like the attached then. -- Michael diff --git a/src/bin/pg_rewind/logging.c b/src/bin/

Re: [COMMITTERS] pgsql: Mark the second argument of pg_log as the translatable string in

2015-04-07 Thread Michael Paquier
On Wed, Apr 8, 2015 at 11:06 AM, Fujii Masao wrote: > Mark the second argument of pg_log as the translatable string in nls.mk. nls.mk is still missing file_ops.c in GETTEXT_FILES as it contains some calls to pg_fatal. -- Michael -- Sent via pgsql-committers mailing list (pgsql-committers@post

Re: [COMMITTERS] pgsql: psql: fix \connect with URIs and conninfo strings

2015-04-01 Thread Michael Paquier
On Thu, Apr 2, 2015 at 11:49 AM, Tom Lane wrote: > Michael Paquier writes: > > The patch attached fixes all those inconsistencies (tested build on OSX > and > > Windows). > > I think this is going in the wrong direction entirely, ie doubling down > on Alvaro's or

Re: [COMMITTERS] pgsql: psql: fix \connect with URIs and conninfo strings

2015-04-01 Thread Michael Paquier
On Thu, Apr 2, 2015 at 10:58 AM, Michael Paquier wrote: > > On other Linux machines, tests for dblink are failing: > + ERROR: could not load library > "/usr/src/pgfarm/build/HEAD/inst/lib/postgresql/dblink.so": > /usr/src/pgfarm/build/HEAD/inst/lib/lib

Re: [COMMITTERS] pgsql: psql: fix \connect with URIs and conninfo strings

2015-04-01 Thread Michael Paquier
On Thu, Apr 2, 2015 at 10:29 AM, Michael Paquier wrote: > > > > On Thu, Apr 2, 2015 at 8:10 AM, Alvaro Herrera > wrote: > >> psql: fix \connect with URIs and conninfo strings >> >> psql was already accepting conninfo strings as the first parameter in >&

Re: [COMMITTERS] pgsql: psql: fix \connect with URIs and conninfo strings

2015-04-01 Thread Michael Paquier
On Thu, Apr 2, 2015 at 8:10 AM, Alvaro Herrera wrote: > psql: fix \connect with URIs and conninfo strings > > psql was already accepting conninfo strings as the first parameter in > \connect, but the way it worked wasn't sane; some of the other > parameters would get the previous connection's val

Re: [COMMITTERS] pgsql: Centralize definition of integer limits.

2015-03-30 Thread Michael Paquier
On Mon, Mar 30, 2015 at 7:48 PM, Andres Freund wrote: > Hi, > > On 2015-03-30 14:01:25 +0900, Michael Paquier wrote: > > On Thu, Mar 26, 2015 at 6:49 AM, Andres Freund > wrote: > > > Centralize definition of integer limits. > > > > > > Several submi

Re: [COMMITTERS] pgsql: Centralize definition of integer limits.

2015-03-29 Thread Michael Paquier
On Mon, Mar 30, 2015 at 2:01 PM, Michael Paquier wrote: > > > > On Thu, Mar 26, 2015 at 6:49 AM, Andres Freund wrote: > > Centralize definition of integer limits. > > > > Several submitted and even committed patches have run into the problem > > that C89, ou

  1   2   >