On Mon, Mar 16, 2015 at 02:38:34PM -0400, Robert Haas wrote:
> On Sun, Mar 15, 2015 at 2:39 AM, Noah Misch wrote:
> > On Thu, Mar 12, 2015 at 11:21:37AM -0400, Robert Haas wrote:
> >> On Thu, Feb 19, 2015 at 1:19 AM, Noah Misch wrote:
> >> > Rereading my previous message, I failed to make the bot
> -Original Message-
> From: Shigeru Hanada [mailto:shigeru.han...@gmail.com]
> Sent: Monday, March 16, 2015 9:59 PM
> To: Robert Haas
> Cc: Tom Lane; Thom Brown; Kaigai Kouhei(海外 浩平); pgsql-hackers@postgreSQL.org
> Subject: ##freemail## Re: Custom/Foreign-Join-APIs (Re: [HACKERS] [v9.5]
>
On 13 March 2015 at 06:24, Ewan Higgs wrote:
> Hi all,
> There has been some press regarding Pivotal's intent to release Greenplum
> source as part of an Open Development Platform (along with some of their
> Hadoop projects). Can anyone speak on whether any of Greenplum might find
> its way upstr
On Mon, Feb 23, 2015 at 8:56 AM, Heikki Linnakangas wrote:
>
> Everyone seems to be happy with the names and behaviour of the GUCs, so
> committed.
The docs suggest that max_wal_size will be respected during archive
recovery (causing restartpoints and recycling), but I'm not seeing that
happen
On 16 March 2015 at 16:31, Dmitry Voronin wrote:
> Hello, all.
>
> We can create temp namespaces and temp objects that contains it. So, for
> example, temp table will be create at pg_temp_N (N - backendID). But afrer
> cluster init we have pg_temp_1 and pg_toast_temp_1 namespaces with OIDs
> 1133
On Fri, Mar 13, 2015 at 7:00 PM, Robert Haas wrote:
>
> On Fri, Mar 13, 2015 at 8:59 AM, Amit Kapila
wrote:
> > We can't directly call DestroyParallelContext() to terminate workers as
> > it can so happen that by that time some of the workers are still not
> > started.
>
> That shouldn't be a pro
When the postmaster recovers from a backend or worker crash, it resets bg
worker's crash time (rw->rw_crashed_at) so that the bgworker will
immediately restart (ResetBackgroundWorkerCrashTimes).
But resetting rw->rw_crashed_at to 0 means that we have lost the
information that the bgworker had actu
2015-03-17 2:51 GMT+01:00 Peter Eisentraut :
> On 3/12/15 8:12 AM, Pavel Stehule wrote:
> > 1. fix missing semicolon pg_proc.h
> >
> > Oid protrftypes[1]; /* types for which to apply
> > transforms */
>
> Darn, I thought I had fixed that.
>
> > 2. strange load lib by in sql scr
> * Tom Lane (t...@sss.pgh.pa.us) wrote:
> > The idea of making the regression test entirely independent of the
> > system's policy would presumably solve this problem, so I'd kind of
> > like to see progress on that front.
>
> Apologies, I guess it wasn't clear, but that's what I was intending to
2015-03-14 7:18 GMT+09:00 Robert Haas :
> I think the foreign data wrapper join pushdown case, which also aims
> to substitute a scan for a join, is interesting to think about, even
> though it's likely to be handled by a new FDW method instead of via
> the hook. Where should the FDW method get ca
>At the moment, partitioning into thousands of tables is not supported.
Thank you for your reply. And thanks Tom Lane and Stephen Frost!
The following(with createsql.sql and update.sql as attachment) is my complete
test case. And i reproduced this problem in PostgreSQL 9.4.1 .
1)create tabl
I pushed a fix for this.
--
Álvaro Herrerahttp://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mail
On 3/12/15 8:12 AM, Pavel Stehule wrote:
> 1. fix missing semicolon pg_proc.h
>
> Oid protrftypes[1]; /* types for which to apply
> transforms */
Darn, I thought I had fixed that.
> 2. strange load lib by in sql scripts:
>
> DO '' LANGUAGE plperl;
> SELECT NULL::hstore;
>
>
On 3/14/15 12:58 PM, Tom Lane wrote:
> I'm getting rather tired of reading these warning messages in OS X builds:
>
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
> file: libpgport.a(dirmod.o) has no symbols
> /Applications/Xcode.app/Contents/Deve
On 16 March 2015 at 15:11, Alvaro Herrera wrote:
>> > Actually, on second thought I revisited this and changed the
>> > representation for opfamilies and opclasses: instead of putting the AM
>> > name in objargs, we can put it as the first element of objname instead.
>> > That way, objargs is unus
Stephen Frost writes:
> * Tom Lane (t...@sss.pgh.pa.us) wrote:
>> That seems fairly ugly. Why would we need a new, duplicative function
>> here? (Apologies if the reasoning was spelled out upthread, I've not
>> been paying much attention.)
> Currently, those functions allow users to signal back
I took another look at this and came up with some alternate comment
rewording. I also added a couple of additional comments that should
hopefully clarify the code a bit.
Regards,
Dean
diff --git a/src/backend/optimizer/path/allpaths.c b/src/backend/optimizer/path/allpaths.c
new file mode 100644
in
* Tom Lane (t...@sss.pgh.pa.us) wrote:
> Stephen Frost writes:
> > ... Lastly, there is the question of pg_cancel_backend and
> > pg_terminate_backend. My thinking on this is to create a new
> > 'pg_signal_backend' which admins could grant access to and leave the
> > existing functions alone (mod
Stephen Frost writes:
> ... Lastly, there is the question of pg_cancel_backend and
> pg_terminate_backend. My thinking on this is to create a new
> 'pg_signal_backend' which admins could grant access to and leave the
> existing functions alone (modulo the change for has_privs_of_role as
> discuss
On 3/12/15 10:08 AM, Andres Freund wrote:
I think this, at the very least, needs a big caveat in the documentation
of the resume function. But a different API would probably be
better. I'd actually argue that for now pg_xlog_replay_resume() should
refuse to work if paused due to a recovery target
All,
* Stephen Frost (sfr...@snowman.net) wrote:
> Alright, I've got an initial patch to do this for pg_start/stop_backup,
> pg_switch_xlog, and pg_create_restore_point. The actual backend changes
> are quite small, as expected. I'll add in the changes for the other
> functions being discussed a
A few days ago I posted a very-much-WIP patch for making the planner
dynamically combine statistics for each member of an appendrel:
http://www.postgresql.org/message-id/22598.1425686...@sss.pgh.pa.us
That patch was only intended to handle the case of an appendrel generated
by a UNION ALL construc
On Mon, Mar 16, 2015 at 11:11 AM, Greg Stark wrote:
>
> On Mon, Mar 16, 2015 at 5:46 PM, David G. Johnston <
> david.g.johns...@gmail.com> wrote:
>
>> Why not just leave the double-quoting requirements intact. An unquoted
>> or (etc) would represent the special keyword while the
>> quoted ver
Robert Haas writes:
> On Mon, Mar 16, 2015 at 2:55 PM, Tom Lane wrote:
>> Robert Haas writes:
>>> Is there a reason not to make a rule that opclass members must be
>>> parallel-safe? I ask because I think it's important that the process
>>> of planning a query be categorically parallel-safe.
>
On Mon, Mar 16, 2015 at 2:55 PM, Tom Lane wrote:
> Robert Haas writes:
>> Is there a reason not to make a rule that opclass members must be
>> parallel-safe? I ask because I think it's important that the process
>> of planning a query be categorically parallel-safe.
>
> I'm not seeing the connec
Robert Haas writes:
> Is there a reason not to make a rule that opclass members must be
> parallel-safe? I ask because I think it's important that the process
> of planning a query be categorically parallel-safe.
I'm not seeing the connection between those two statements. The planner
doesn't us
2015-03-16 19:32 GMT+03:00 Chengyu Fan :
> Hi,
>
> Does anyone know how to create the shared_ptr for PGconn? I always get
> compile errors ...
>
> Below is my code:
> ---
> const char * dbInfo = "xxx";
> PGconn *conn = PGconnectdb(dbInfo);
> if (PGstatus(conn) != CONNECTION_OK)
On Sun, Mar 15, 2015 at 2:39 AM, Noah Misch wrote:
> On Thu, Mar 12, 2015 at 11:21:37AM -0400, Robert Haas wrote:
>> On Thu, Feb 19, 2015 at 1:19 AM, Noah Misch wrote:
>> > Rereading my previous message, I failed to make the bottom line clear: I
>> > recommend marking eqsel etc. PROPARALLEL_UNSAF
On Mon, Mar 16, 2015 at 5:46 PM, David G. Johnston <
david.g.johns...@gmail.com> wrote:
> Why not just leave the double-quoting requirements intact. An unquoted
> or (etc) would represent the special keyword while the
> quoted version would mean that the name is used literally.
>
For users th
On Mon, Mar 16, 2015 at 1:46 PM, David G. Johnston
wrote:
> Why not just leave the double-quoting requirements intact. An unquoted
> or (etc) would represent the special keyword while the
> quoted version would mean that the name is used literally.
That would be OK with me, I think.
> I'm not
On Mon, Mar 16, 2015 at 9:29 AM, Alvaro Herrera
wrote:
> Robert Haas wrote:
> > On Wed, Mar 11, 2015 at 1:32 PM, Greg Stark wrote:
> > > I think what we have here is already a good semantic representation. It
> > > doesn't handle all the corner cases but those corner cases are a) very
> > > unli
All,
Sure, if we never deprecate anything then tool authors would never need
> to change their existing code. I don't think that's actually a viable
> solution though; the reason we're discussing the removal of these
> particular views is that they aren't really being maintained and, when
> they
On Mon, Mar 16, 2015 at 4:29 PM, Alvaro Herrera
wrote:
> +1 what Robert said. I think the additional "keyword" columns are a
> good solution to the issue.
>
Huh. Well I disagree but obviously I'm in the minority. I'll put fix it up
accordingly today and post the resulting view output (which I e
On Mon, Mar 16, 2015 at 12:07 PM, Simon Riggs wrote:
>> What Simon actually proposed was by *bloat*; that is, if the overall
>> amount of bloat in the system exceeds some metric, start whacking old
>> queries in order to control it. The appeal of that is obvious,
>
> Agreed
>
>> but I
>> think it
* Andres Freund (and...@2ndquadrant.com) wrote:
> On 2015-03-16 12:50:13 -0300, Alvaro Herrera wrote:
> > Well, we already have make targets for gcov and friends; you get some
> > HTML charts and marked-up source lines with coverage counts, etc. I
> > don't think we've made any use of that. It'd
Alvaro,
* Alvaro Herrera (alvhe...@2ndquadrant.com) wrote:
> Stephen Frost wrote:
> > I don't think we've made use of it either. If the targets/code are
> > already there to make it happen and it's just a matter of having a
> > system running which is generating the website then I can probably ge
On 2015-03-16 12:50:13 -0300, Alvaro Herrera wrote:
> Well, we already have make targets for gcov and friends; you get some
> HTML charts and marked-up source lines with coverage counts, etc. I
> don't think we've made any use of that. It'd be neat to have something
> similar to our doxygen servi
Hi,
Does anyone know how to create the shared_ptr for PGconn? I always get compile
errors ...
Below is my code:---const char * dbInfo = "xxx";PGconn
*conn = PGconnectdb(dbInfo);if (PGstatus(conn) != CONNECTION_OK) {std::cout
<< PQerrorMessage(conn) << std::endl;return
Robert Haas wrote:
> On Wed, Mar 11, 2015 at 1:32 PM, Greg Stark wrote:
> > I think what we have here is already a good semantic representation. It
> > doesn't handle all the corner cases but those corner cases are a) very
> > unlikely and b) easy to check for. A tool can check for any users start
On Mon, Mar 16, 2015 at 11:46 AM, Robert Haas wrote:
> On Sun, Mar 15, 2015 at 8:04 PM, Rui DeSousa wrote:
> > Would a parameter to auto terminate long running transactions be a
> better solution? Terminating the long running transaction would allow for
> the normal vacuuming process to cleanup
Stephen Frost wrote:
> Alvaro,
>
> * Alvaro Herrera (alvhe...@2ndquadrant.com) wrote:
> > Well, we already have make targets for gcov and friends; you get some
> > HTML charts and marked-up source lines with coverage counts, etc. I
> > don't think we've made any use of that. It'd be neat to hav
On 16 March 2015 at 13:02, Robert Haas wrote:
> I'm not sure what the value of basing this on WAL volume is, and I
> think we should talk about that a bit more first. The value of doing
> this by rate of XID consumption is easy to understand: it's simple to
> implement. The value of doing this
On Wed, Mar 11, 2015 at 1:32 PM, Greg Stark wrote:
> I think what we have here is already a good semantic representation. It
> doesn't handle all the corner cases but those corner cases are a) very
> unlikely and b) easy to check for. A tool can check for any users starting
> with + or named "all"
* Robert Haas (robertmh...@gmail.com) wrote:
> On Fri, Mar 13, 2015 at 9:52 AM, Stephen Frost wrote:
> > * Stephen Frost (sfr...@snowman.net) wrote:
> >> I should have been more specific. I don't believe they've moved to
> >> using pg_roles completely (which was created specifically to address th
Alvaro,
* Alvaro Herrera (alvhe...@2ndquadrant.com) wrote:
> Stephen Frost wrote:
> > It'd certainly be great to have more testing in general, but we're not
> > going to be able to include complete code coverage tests in the normal
> > set of regression tests which are run.. What I've been thinki
On Fri, Mar 13, 2015 at 9:52 AM, Stephen Frost wrote:
> * Stephen Frost (sfr...@snowman.net) wrote:
>> I should have been more specific. I don't believe they've moved to
>> using pg_roles completely (which was created specifically to address the
>> issue that regular users can't select from pg_au
Stephen Frost wrote:
> It'd certainly be great to have more testing in general, but we're not
> going to be able to include complete code coverage tests in the normal
> set of regression tests which are run.. What I've been thinking for a
> while (probably influenced by other discussion) is that
On Sun, Mar 15, 2015 at 8:04 PM, Rui DeSousa wrote:
> Would a parameter to auto terminate long running transactions be a better
> solution? Terminating the long running transaction would allow for the normal
> vacuuming process to cleanup the deleted records thus avoiding database bloat
> witho
* Alvaro Herrera (alvhe...@2ndquadrant.com) wrote:
> Actually, there was a bug in the changes of the rule for ALTER EXTENSION
> ADD OPERATOR CLASS. I noticed by chance only, and upon testing it
> manually I realized I had made a mistake. I then remembered I made the
> same bug previously, fixed b
On 5 March 2015 at 23:44, Peter Geoghegan wrote:
> On Wed, Mar 4, 2015 at 5:18 PM, Peter Geoghegan wrote:
>> Attached patch series forms what I'm calling V3.0 of the INSERT ... ON
>> CONFLICT IGNORE/UPDATE feature. (Sorry about all the threads. I feel
>> this development justifies a new thread, t
Stephen Frost wrote:
> Alvaro,
>
> * Alvaro Herrera (alvhe...@2ndquadrant.com) wrote:
> > Stephen Frost wrote:
> > > I thought the rest of it looked alright. I agree it's a bit odd how the
> > > opfamily is handled but I agree with your assessment that there's not
> > > much better we can do with
Tom,
* Tom Lane (t...@sss.pgh.pa.us) wrote:
> The idea of making the regression test entirely independent of the
> system's policy would presumably solve this problem, so I'd kind of
> like to see progress on that front.
Apologies, I guess it wasn't clear, but that's what I was intending to
advoc
Stephen Frost writes:
> * Alvaro Herrera (alvhe...@2ndquadrant.com) wrote:
>> Kohei KaiGai wrote:
>>> The attached patch fixes the policy module of regression test.
>> Is this something we would backpatch?
> As it's just a change to the regression tests, it seems like it'd be a
> good idea to ba
Alvaro, KaiGai,
* Alvaro Herrera (alvhe...@2ndquadrant.com) wrote:
> Kohei KaiGai wrote:
>
> > This regression test fail come from the base security policy of selinux.
> > In the recent selinux-policy package, "unconfined" domain was changed
> > to have unrestricted permission as literal. So, thi
Kohei KaiGai wrote:
> This regression test fail come from the base security policy of selinux.
> In the recent selinux-policy package, "unconfined" domain was changed
> to have unrestricted permission as literal. So, this test case relies multi-
> category policy restricts unconfined domain, but i
On 16 March 2015 at 12:48, Kevin Grittner wrote:
> Simon Riggs wrote:
>> On 13 March 2015 at 15:41, Kevin Grittner wrote:
>>
>>> The feedback was generally fairly positive except for the fact that
>>> snapshot "age" (for purposes of being too old) was measured in
>>> transaction IDs assigned. T
Kyotaro HORIGUCHI wrote:
> Thank you for rewriting.
Thank *you* for pointing out where more work was needed in the
comments and README!
> I attached the your latest patch to this mail as
> bt-nopin-v4.patch for now. Please check that there's no problem
> in it.
I checked out master, applied th
Hello, all.
We can create temp namespaces and temp objects that contains it. So, for
example, temp table will be create at pg_temp_N (N - backendID). But afrer
cluster init we have pg_temp_1 and pg_toast_temp_1 namespaces with OIDs 11333
and 11334. Those namespaces are visible from any cluster
On 16/03/15 00:37, Andreas Karlsson wrote:
On 03/15/2015 09:47 PM, Petr Jelinek wrote:
It's almost the same thing as you wrote but the 128 bit and 64 bit
optimizations are put on the same "level" of optimized routines.
But this is nitpicking at this point, I am happy with the patch as it
stands
On Mon, Mar 16, 2015 at 8:48 AM, Kevin Grittner wrote:
> Given that there seems to be disagreement on what is the more
> useful metric, do we want to consider allowing more than one? If
> so, would it be when *all* conditions are met or when *any*
> conditions are met?
Oh, gosh. Maybe we could
Simon Riggs wrote:
> On 13 March 2015 at 15:41, Kevin Grittner wrote:
>
>> The feedback was generally fairly positive except for the fact that
>> snapshot "age" (for purposes of being too old) was measured in
>> transaction IDs assigned. There seemed to be a pretty universal
>> feeling that this
On Wed, Mar 4, 2015 at 4:26 AM, Shigeru Hanada wrote:
> Here is v4 patch of Join push-down support for foreign tables. This
> patch requires Custom/Foreign join patch v7 posted by Kaigai-san.
Hi,
I just want to point out to the folks on this thread that the action
in this area is happening on t
On Sat, Mar 14, 2015 at 10:37 PM, Kouhei Kaigai wrote:
> From the standpoint of extension development, I'm uncertain whether we
> can easily reproduce information needed to compute alternative paths on
> the hook at standard_join_search(), like a hook at add_paths_to_joinrel().
>
> (Please correct
On 2015-03-16 07:52:20 +, Simon Riggs wrote:
> On 15 March 2015 at 22:38, Andres Freund wrote:
>
> > Sorry, I don't buy this. If I have "recovery_target_action = 'pause'" in
> > the config file, I want it to pause.
>
> You want it to enter a state where you cannot perform any action other
>
On 16 March 2015 at 09:55, David Rowley wrote:
> I think it's probably possible to do this, but I think it would require
> calling make_one_rel() with every combination of each possibly removable
> relations included and not included in the join list. I'm thinking this
> could end up a lot of wor
Hello, all.We can create temp namespaces and temp objects that contains it. So, for example, temp table will be create at pg_temp_N (N - backendID). But afrer cluster init we have pg_temp_1 and pg_toast_temp_1 namespaces with OIDs 11333 and 11334. Those namespaces are visible from any cluster datab
Hello, I don't have enough time for now but made some
considerations on this.
It might be a way that marking unique join peer at bottom and
propagate up, not searching from top of join list.
Around create_join_clause might be a candidate for it.
I'll investigate that later.
regards,
At Sat, 14
On Mon, Mar 16, 2015 at 4:56 PM, Asif Naeem wrote:
> The following review has been posted through the commitfest application:
> make installcheck-world: not tested
> Implements feature: tested, failed
> Spec compliant: not tested
> Documentation:not tested
>
> Thank yo
The following review has been posted through the commitfest application:
make installcheck-world: not tested
Implements feature: tested, failed
Spec compliant: not tested
Documentation:not tested
Thank you Michael. v4 patch looks good to me.
The new status of this pa
On 15 March 2015 at 22:38, Andres Freund wrote:
> Sorry, I don't buy this. If I have "recovery_target_action = 'pause'" in
> the config file, I want it to pause.
You want it to enter a state where you cannot perform any action other
than shutdown?
Why would anyone want that?
--
Simon Riggs
On 16-03-2015 PM 04:14, Amit Kapila wrote:
> On Mon, Mar 16, 2015 at 9:40 AM, Amit Langote
> wrote:
>> Or if the just-detached queue happens to be the last one, we'll make
>> shm_mq_receive() to read from a potentially already-detached queue in the
>> immediately next iteration.
>
> Won't the las
On Fri, Mar 13, 2015 at 7:06 PM, Alvaro Herrera
wrote:
>
> Amit Kapila wrote:
>
> > I think this can happen if funnel->nextqueue is greater
> > than funnel->nqueues.
> > Please see if attached patch fixes the issue, else could you share the
> > scenario in more detail where you hit this issue.
>
>
On Mon, Mar 16, 2015 at 9:40 AM, Amit Langote
wrote:
>
> On 13-03-2015 PM 11:03, Amit Kapila wrote:
> > On Fri, Mar 13, 2015 at 7:15 PM, Robert Haas
wrote:
> >>
> >> I don't think this is the right fix; the point of that code is to
> >> remove a tuple queue from the funnel when it gets detached,
I agree that inter-process stuff should be avoided. This is not what
I had in mind. I was thinking of "fprintf" on the same file handler
by different threads.
That still involves some sort of 'implicit' locking, no?
I fully agree that it would need locking, wether it is implicit if fprintf
74 matches
Mail list logo