Re: [HACKERS] Fix Error Message for allocate_recordbuf() Failure

2016-07-10 Thread Craig Ringer
On 11 July 2016 at 12:04, Michael Paquier wrote: > On Sat, Jul 9, 2016 at 2:58 AM, Shoaib Lari wrote: > > Besides making the error message more informative, we had to modify > > allocate_recordbuf() to return the actual number of bytes that were

Re: [HACKERS] pgbench - minor doc improvements

2016-07-10 Thread Fabien COELHO
Hello Michaël, Minor pgbench documentation improvements so that the description is more precise: - a pgbench script may not contain SQL commands, it only needs not to be empty. Halfly true as far as I recall. This works and generates two queries: SELECT 1; \set two 3 Maybe it used to

Re: [HACKERS] Disable WAL completely - Performance and Persistency research

2016-07-10 Thread Craig Ringer
On 10 July 2016 at 18:27, Netanel Katzburg wrote: > BUT, both options are not good, as they are stopping me from even running i > *nitdb.* > > > The easiest path for testing will be to use an unpatched PostgreSQL to `initdb` and create a new database. Then start up a

Re: [HACKERS] PSA: Systemd will kill PostgreSQL

2016-07-10 Thread Craig Ringer
On 11 July 2016 at 01:56, Joshua D. Drake wrote: > Hackers, > > This just came across my twitter feed: > > https://lists.freedesktop.org/archives/systemd-devel/2014-April/018373.html > > tl;dr; Systemd 212 defaults to remove all IPC (including SYSV memory) when > a user

Re: [COMMITTERS] [HACKERS] Logical decoding

2016-07-10 Thread Michael Paquier
On Mon, Jul 11, 2016 at 2:03 PM, Craig Ringer wrote: > On 9 July 2016 at 01:57, Joshua Bay wrote: >> and where are this code is in the codebase? > > src/backend/replication/logical/* > src/backend/replication/walsender.c >

Re: [HACKERS] pgbench - minor fix for meta command only scripts

2016-07-10 Thread Fabien COELHO
Hello Michaël, You may want to name your patches with .patch or .diff. Using .sql is disturbing style :) Indeed! :-) Indeed, not reporting the progress back to the client in the case of a script with only meta commands is non-intuitive. This looks good to me. I'd just rewrite the comment

Re: [HACKERS] Logical decoding

2016-07-10 Thread Craig Ringer
On 9 July 2016 at 01:57, Joshua Bay wrote: > where are the entry points to logical decoding? > Well, it depends on what level you're looking at. Data is read using the xlogreader and fed into the decoding system by the walsender (when using a logical slot) and the SQL

Re: [HACKERS] Issue with bgworker, SPI and pgstat_report_stat

2016-07-10 Thread Craig Ringer
On 11 July 2016 at 11:49, Michael Paquier wrote: > On Mon, Jul 11, 2016 at 3:36 AM, Julien Rouhaud > wrote: > > I'm not opposed, but in this case we should also provide a proper > > documentation of all the required actions to mimick normal

Re: [HACKERS] pgbench - minor doc improvements

2016-07-10 Thread Michael Paquier
On Sat, Jul 9, 2016 at 4:48 PM, Fabien COELHO wrote: > > Minor pgbench documentation improvements so that the description is more > precise: > > - a pgbench script may not contain SQL commands, it only needs not to be >empty. Halfly true as far as I recall. This works

Re: [HACKERS] pgbench - minor fix for meta command only scripts

2016-07-10 Thread Michael Paquier
On Sat, Jul 9, 2016 at 4:09 PM, Fabien COELHO wrote: > > While testing meta-command pgbench only scripts, I noticed that there is an > infinite loop in threadRun, which means that other tasks such as reporting > progress do not get a chance. > > The attached patch breaks this

Re: [HACKERS] Fix Error Message for allocate_recordbuf() Failure

2016-07-10 Thread Michael Paquier
On Sat, Jul 9, 2016 at 2:58 AM, Shoaib Lari wrote: > Besides making the error message more informative, we had to modify > allocate_recordbuf() to return the actual number of bytes that were being > allocated. - report_invalid_record(state, "record length %u at %X/%X too

Re: [HACKERS] Issue with bgworker, SPI and pgstat_report_stat

2016-07-10 Thread Michael Paquier
On Mon, Jul 11, 2016 at 3:36 AM, Julien Rouhaud wrote: > I'm not opposed, but in this case we should also provide a proper > documentation of all the required actions to mimick normal backends. I'd rather just add a note like "Have a look at PostgresMain if you want to

Re: [HACKERS] Showing parallel status in \df+

2016-07-10 Thread Michael Paquier
On Mon, Jul 11, 2016 at 12:42 AM, Tom Lane wrote: > If we're keeping the "Source code" column, I'd be inclined to keep > "Language" adjacent to that. When thinking of a function as a black > box, both language and source code are implementation details; but > all the other

Re: [HACKERS] [CF2016-9] Allow spaces in working path on tap-tests

2016-07-10 Thread Michael Paquier
On Sun, Jul 10, 2016 at 11:52 PM, Tom Lane wrote: > Michael Paquier writes: >> Thanks! What you have pushed looks fine to me. Also, the portion for >> src/tools/msvc needs to go further down, I should have precised that >> earlier. Do you want a

Re: [HACKERS] doc: Incorrect return type of IsForeignScanParallelSafe in fdwhandler.sgml

2016-07-10 Thread Etsuro Fujita
On 2016/07/09 1:41, Tom Lane wrote: Etsuro Fujita writes: I noticed that the return type of IsForeignScanParallelSafe described in fdwhandler.sgml isn't correct; that should be bool, not Size. Please find attached a small patch for that. Pushed, thanks! Thank

Re: [HACKERS] pg_hba_lookup function to get all matching pg_hba.conf entries

2016-07-10 Thread Haribabu Kommi
On Sat, Apr 9, 2016 at 6:36 AM, Tom Lane wrote: > > More generally, I'm not convinced about the use-case for this patch. > What problem is it supposed to help in dealing with, exactly? Not syntax > errors in the hba file, evidently, since it doesn't make any attempt to >

Re: [HACKERS] can we optimize STACK_DEPTH_SLOP

2016-07-10 Thread Tom Lane
I wrote: > So, agreed, let's commit some temporary debug code and see what the > buildfarm can teach us. Will go work on that in a bit. After reviewing the buildfarm results, I'm feeling nervous about this whole idea again. For the most part, the unaccounted-for daylight between the maximum

Re: [HACKERS] Issue with bgworker, SPI and pgstat_report_stat

2016-07-10 Thread Julien Rouhaud
On 08/07/2016 01:53, Michael Paquier wrote: > On Fri, Jul 8, 2016 at 3:06 AM, Andres Freund wrote: >> On 2016-07-07 14:04:36 -0400, Robert Haas wrote: >>> On Thu, Jul 7, 2016 at 1:52 PM, Julien Rouhaud >>> wrote: Should a bgworker modifing data

Re: [HACKERS] PSA: Systemd will kill PostgreSQL

2016-07-10 Thread Julien Rouhaud
On 10/07/2016 19:56, Joshua D. Drake wrote: > Hackers, > > This just came across my twitter feed: > > https://lists.freedesktop.org/archives/systemd-devel/2014-April/018373.html > > tl;dr; Systemd 212 defaults to remove all IPC (including SYSV memory) > when a user "fully" logs out. > AFAIK

[HACKERS] PSA: Systemd will kill PostgreSQL

2016-07-10 Thread Joshua D. Drake
Hackers, This just came across my twitter feed: https://lists.freedesktop.org/archives/systemd-devel/2014-April/018373.html tl;dr; Systemd 212 defaults to remove all IPC (including SYSV memory) when a user "fully" logs out. JD -- Sent via pgsql-hackers mailing list

Re: [HACKERS] Disable WAL completely - Performance and Persistency research

2016-07-10 Thread Netanel Katzburg
Hi Michael, Sorry for the delay, The answer is yes, I tried 2 things so far: 1. As I understand: *XLogRecPtr* *XLogInsert(RmgrId rmid, uint8 info)* is the primary insert function in xloginsert.c. I tried commenting the following line at this function, so I can return a phony pointer every time

Re: [HACKERS] Showing parallel status in \df+

2016-07-10 Thread Tom Lane
Michael Paquier writes: >> - Reordering the columns, I'd suggest as follows): >> -- Schema >> -- Name >> -- Result data type >> -- Argument data types >> -- Type >> -- Language >> -- Volatility >> -- Parallel >> -- Owner >> -- Security >> -- ACL >> -- Source code >> --

Re: [HACKERS] [CF2016-9] Allow spaces in working path on tap-tests

2016-07-10 Thread Tom Lane
Michael Paquier writes: > Thanks! What you have pushed looks fine to me. Also, the portion for > src/tools/msvc needs to go further down, I should have precised that > earlier. Do you want a patch for that? Yes, please --- I thought it'd all gotten done.

Re: [HACKERS] Showing parallel status in \df+

2016-07-10 Thread Michael Paquier
On Sat, Jul 9, 2016 at 8:12 AM, Michael Paquier wrote: > So to sum up: > - Add "Parallel" column > - Add ACLs > - Reordering the columns, I'd suggest as follows): > -- Schema > -- Name > -- Result data type > -- Argument data types > -- Type > -- Language > --

Re: [HACKERS] [CF2016-9] Allow spaces in working path on tap-tests

2016-07-10 Thread Michael Paquier
On Sun, Jul 10, 2016 at 5:50 AM, Tom Lane wrote: > This seemed like a bug fix to me ... Yes, it is. > ... so I went ahead and pushed it. I don't > have any ability to test the Windows parts, so it's possible I missed > something in the back-patching; please review. Thanks!

Re: [HACKERS] INSERT .. SET syntax

2016-07-10 Thread Amit Kapila
On Mon, Jul 4, 2016 at 1:06 AM, Marko Tiikkaja wrote: > Hi, > > Here's a patch for $SUBJECT. I'll probably work on the docs a bit more > before the next CF, but I thought I'd post it anyway. > I could see that it can be useful in certain cases as described in the documentation