Re: [HACKERS] Aussie timezone database changes incoming

2014-10-05 Thread Jim Nasby
On 10/4/14, 3:25 PM, Bruce Momjian wrote: On Sat, Oct 4, 2014 at 03:01:45PM -0500, Jim Nasby wrote: On 10/4/14, 2:58 PM, Bruce Momjian wrote: I've committed changes for this in advance of the upcoming 9.4beta3 release. Hopefully, if this is seriously bad for anyone, we'll hear about it from

Re: [HACKERS] pgbench throttling latency limit

2014-10-05 Thread Fabien COELHO
Hello Heikki, Here are new patches, again the first one is just refactoring, and the second one contains this feature. I'm planning to commit the first one shortly, and the second one later after people have had a chance to look at it. I looked at it. It looks ok, but for a few spurious

Re: [HACKERS] proposal for 9.5: monitoring lock time for slow queries

2014-10-05 Thread Gregory Smith
On 8/13/14, 5:14 AM, MauMau wrote: I'm interested in b, too. I was thinking of proposing a performance diagnostics feature like Oracle's wait events (V$SYSTEM_EVENT and V$SESSION_EVENT). So, if you do this, I'd like to contribute to the functional design, code and doc review, and testing.

Re: [HACKERS] Add generate_series(numeric, numeric)

2014-10-05 Thread Ali Akbar
Hi Oops, it seems that I have been too hasty here. With a fresh mind I looked at my own patch again and found two bugs: - Incorrect calculation of each step's value, making stuff crash, it is necessary to switch to the context of the function to perform operations on a temporary variable

[HACKERS] RLS with check option - surprised design

2014-10-05 Thread Pavel Stehule
Hello I am playing with RLS. I created simple table table_data (inserted_by text, v integer); I created two policies create policy p1 on data with check (inserted_by = session_user); create policy p2 on data with check (v between 10 and 1000); I was surprised so p2 effectively disables p1;

Re: [HACKERS] Add generate_series(numeric, numeric)

2014-10-05 Thread Ali Akbar
2014-10-05 15:21 GMT+07:00 Ali Akbar the.ap...@gmail.com: Hi Oops, it seems that I have been too hasty here. With a fresh mind I looked at my own patch again and found two bugs: - Incorrect calculation of each step's value, making stuff crash, it is necessary to switch to the context of

Re: [HACKERS] Add generate_series(numeric, numeric)

2014-10-05 Thread Ali Akbar
Also, Платон Малюгин, can you add this patch to postgresql commitfest ( http://commitfest.postgresql.org)? -- Ali Akbar

Re: [HACKERS] RLS with check option - surprised design

2014-10-05 Thread Stephen Frost
* Pavel Stehule (pavel.steh...@gmail.com) wrote: I am playing with RLS. I created simple table table_data (inserted_by text, v integer); I created two policies create policy p1 on data with check (inserted_by = session_user); create policy p2 on data with check (v between 10 and 1000);

Re: [HACKERS] CREATE IF NOT EXISTS INDEX

2014-10-05 Thread Marti Raudsepp
On Fri, Oct 3, 2014 at 7:25 PM, Fabrízio de Royes Mello fabriziome...@gmail.com wrote: I agree with your grammar change. Cool. The version 5 (attached) contains all discussed until now. From documentation: CREATE INDEX ... [ IF NOT EXISTS name | name ] ON ... Maybe I'm just slow, but it

Re: [HACKERS] RLS with check option - surprised design

2014-10-05 Thread Pavel Stehule
2014-10-05 14:16 GMT+02:00 Stephen Frost sfr...@snowman.net: * Pavel Stehule (pavel.steh...@gmail.com) wrote: I am playing with RLS. I created simple table table_data (inserted_by text, v integer); I created two policies create policy p1 on data with check (inserted_by =

Re: [HACKERS] RLS with check option - surprised design

2014-10-05 Thread Stephen Frost
Pavel, * Pavel Stehule (pavel.steh...@gmail.com) wrote: Please, can you show me some use case, where OR has bigger sense than AND? [...] You might also have a policy which applies to all roles and then a more permissive policy for an 'admin' type of user- look at the Unix passwd example

[HACKERS] Proposal for better support of time-varying timezone abbreviations

2014-10-05 Thread Tom Lane
I got interested in the problem discussed in http://www.postgresql.org/message-id/20714.1412456...@sss.pgh.pa.us to wit: It's becoming clear to me that our existing design whereby zone abbreviations represent fixed GMT offsets isn't really good enough. I've been wondering whether we could

Re: [HACKERS] Escaping from blocked send() reprised.

2014-10-05 Thread Andres Freund
On 2014-10-03 18:29:23 +0300, Heikki Linnakangas wrote: On 10/03/2014 05:26 PM, Andres Freund wrote: On 2014-10-03 17:12:18 +0300, Heikki Linnakangas wrote: On 09/28/2014 01:54 AM, Andres Freund wrote: 0003 Sinval/notify processing got simplified further. There really isn't any need for

Re: [HACKERS] Proposal for better support of time-varying timezone abbreviations

2014-10-05 Thread Gavin Flower
On 06/10/14 10:33, Tom Lane wrote: I got interested in the problem discussed in http://www.postgresql.org/message-id/20714.1412456...@sss.pgh.pa.us to wit: It's becoming clear to me that our existing design whereby zone abbreviations represent fixed GMT offsets isn't really good enough. I've

Re: [HACKERS] Proposal for better support of time-varying timezone abbreviations

2014-10-05 Thread Tom Lane
Gavin Flower gavinflo...@archidevsys.co.nz writes: The use of an /as_at_date/ is far more problematic. The idea relates to how existing date/times should be treated with respect to the date/time that a pg database is updated with new time zone data files. In the simplest form: there

Re: [HACKERS] CREATE IF NOT EXISTS INDEX

2014-10-05 Thread Fabrízio de Royes Mello
On Sun, Oct 5, 2014 at 9:52 AM, Marti Raudsepp ma...@juffo.org wrote: The version 5 (attached) contains all discussed until now. From documentation: CREATE INDEX ... [ IF NOT EXISTS name | name ] ON ... Maybe I'm just slow, but it took me a few minutes to understand what this means. :)

[HACKERS] Feasibility of supporting bind params for all command types

2014-10-05 Thread Craig Ringer
Hi all While looking at an unrelated issue in PgJDBC I noticed that it's difficult for users and the driver to tell in advance if a given statement will support bind parameters. PostgreSQL just treats placeholders as syntax errors for non-plannable statements at parse time. This forces users to

Re: [HACKERS] WAL format and API changes (9.5)

2014-10-05 Thread Michael Paquier
On Fri, Oct 3, 2014 at 9:51 PM, Heikki Linnakangas hlinnakan...@vmware.com wrote: So I now have a refactoring patch ready that I'd like to commit (the attached two patches together), but to be honest, I have no idea why the second patch is so essential to performance. Thanks. I did some more

Re: [HACKERS] CREATE IF NOT EXISTS INDEX

2014-10-05 Thread Marti Raudsepp
On Mon, Oct 6, 2014 at 4:17 AM, Fabrízio de Royes Mello fabriziome...@gmail.com wrote: On Sun, Oct 5, 2014 at 9:52 AM, Marti Raudsepp ma...@juffo.org wrote: CREATE INDEX ... [ IF NOT EXISTS name | name ] ON ... Maybe I'm just slow, but it took me a few minutes to understand what this means.

Re: [HACKERS] Feasibility of supporting bind params for all command types

2014-10-05 Thread Tom Lane
Craig Ringer cr...@2ndquadrant.com writes: While looking at an unrelated issue in PgJDBC I noticed that it's difficult for users and the driver to tell in advance if a given statement will support bind parameters. It's not that hard ;-) ... if it ain't SELECT/INSERT/UPDATE/DELETE, it won't

[HACKERS] Failure with make check-world for pgtypeslib/dt_test2 with HEAD on OSX

2014-10-05 Thread Michael Paquier
Hi, This morning while running make check-world on my OSX Mavericks laptop, I found the following failure: test pgtypeslib/dt_test2 ... stderr FAILED (test process was terminated by signal 6: Abort trap) (lldb) bt * thread #1: tid = 0x, 0x7fff8052c866

Re: [HACKERS] Failure with make check-world for pgtypeslib/dt_test2 with HEAD on OSX

2014-10-05 Thread Tom Lane
Michael Paquier michael.paqu...@gmail.com writes: This morning while running make check-world on my OSX Mavericks laptop, I found the following failure: [ scratches head... ] Doesn't reproduce on my OSX Mavericks laptop, either with or without --disable-integer-datetimes. What compiler are