Re: [HACKERS] More WITH

2015-08-19 Thread David Fetter
On Tue, Aug 18, 2015 at 11:23:32PM -0400, Tom Lane wrote: > Craig Ringer writes: > > On 18 August 2015 at 01:18, David Fetter wrote: > >> FETCH [in WITH] > > > I'd be a huge fan of this one. I'd love to see FETCH in > > subqueries, too. Currently doing

Re: [HACKERS] Declarative partitioning

2015-08-19 Thread David Fetter
On Wed, Aug 19, 2015 at 04:30:39PM +0900, Amit Langote wrote: > On 2015-08-18 PM 10:43, David Fetter wrote: > >> > >> After the first command is done, the second command would take exclusive > >> lock on table_name, scan the table to check if it contains any valu

Re: [HACKERS] Test code is worth the space

2015-08-18 Thread David Fetter
On Tue, Aug 18, 2015 at 04:54:07PM +0100, Greg Stark wrote: > On Tue, Aug 18, 2015 at 2:16 PM, David Fetter wrote: > > I'm given to understand that this tight coupling is necessary for > > performance. Are you saying that it could be unwound, or that > > testing strateg

Re: [HACKERS] Declarative partitioning

2015-08-18 Thread David Fetter
t; > This removes partition_name as partition of partitioned_table. The table > continues to exist with the same name or 'table_name', if specified. > pg_class.relispartition is set to false for the table, so it behaves like > a normal table. Could this take anything sho

Re: [HACKERS] Test code is worth the space

2015-08-18 Thread David Fetter
ut doing a complete planner > run on a query. I'm given to understand that this tight coupling is necessary for performance. Are you saying that it could be unwound, or that testing strategies mostly need to take it into account, or...? Cheers, David. -- David Fetter http://fetter.or

Re: [HACKERS] More WITH

2015-08-17 Thread David Fetter
gh. Among many other things, certainly :) > > SHOW > > Not very useful, easy to work around (pg_settings). This particular one is just about being consistent, or the way I look at it, about avoiding surprising users with inconsistencies. Cheers, David. -- David Fetter http://fetter.org

[HACKERS] More WITH

2015-08-17 Thread David Fetter
;t have all the row-returning commands in WITH? Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate

Re: [HACKERS] [RFC] allow 'semester' in functions EXTRACT, DATE_PART, TO_CHAR and so on.

2015-08-15 Thread David Fetter
l about which type of "half" we are defining. For some financial calculations, a "month" is always 30 days, a "quarter," always three "months," i.e. 90 days, and a "half" is six "months," or 180 days. Yes, date math is crazy,

Re: [HACKERS] [patch] A \pivot command for psql

2015-08-11 Thread David Fetter
On Tue, Aug 11, 2015 at 05:13:03PM +0200, Daniel Verite wrote: > David Fetter wrote: > > > That depends on what you mean by "dynamic columns." The approach > > taken in the tablefunc extension is to use functions which return > > SETOF RECORD, which

Re: [HACKERS] [patch] A \pivot command for psql

2015-08-11 Thread David Fetter
d. That said, a thing in psql that could slice serialized output into columns would be handy as a broad, general part of reporting in psql, and would mesh quite nicely with a back-end PIVOT (SERIALIZATION FOO) or whatever syntax we land on. Cheers, David. -- David Fetter http://fetter.org/ P

Re: [HACKERS] [patch] A \pivot command for psql

2015-08-10 Thread David Fetter
On Mon, Aug 10, 2015 at 07:10:41PM +0200, Daniel Verite wrote: > David Fetter wrote: > > > I'm working up a proposal to add (UN)PIVOT support to the back-end. > > I was under the impression that a server-side PIVOT *with dynamic > columns* was just unworkable a

Re: [HACKERS] [patch] A \pivot command for psql

2015-08-09 Thread David Fetter
if you are using some particular piece of extra software, in this case the psql client. I'm working up a proposal to add (UN)PIVOT support to the back-end. Would you like to join in on that? Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yah

Re: [HACKERS] creating extension including dependencies

2015-07-12 Thread David Fetter
ls bar, it makes sense to me that > `CREATE EXTENSION foo` would install bar if it was available, and > complain if it wasn’t. This is this baseline sane behavior. Getting the full dependency tree, although it would be very handy, would require more infrastructure than we have now. Cheers

Re: [HACKERS] Serialization errors in Postgres 9.4.0

2015-06-25 Thread David Fetter
ssive predicate locking mechanism now? > Can it be that because of the small table size it performs sequential scan > and locks the entire table? > > Sorry if any of these questions are plain stupid. Thanks for asking. These questions are quite reasonable. Cheers, David. -- David Fe

Re: [HACKERS] RFC: Remove contrib entirely

2015-06-05 Thread David Fetter
s, in my opinion, essentially required to make PGXN > > useful for anything other than a scratchpad. > > Most of the distributions on PGXN feature links to their source code > repositories. Should this just be made a hard requirement for PGXN? Lack of a source code repo is a pretty goo

Re: [HACKERS] RFC: Remove contrib entirely

2015-06-02 Thread David Fetter
stification for the legal department for why we should install this software," to cause things simply never to get installed. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com R

[HACKERS] GENERATED: the new generation

2015-05-27 Thread David Fetter
when it comes to temporal databases, which modern storage systems has made a good bit less crazy than they were when we got rid of time travel. What say? Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP

Re: [HACKERS] GROUPING

2015-05-21 Thread David Fetter
On Thu, May 21, 2015 at 12:24:03PM -0400, Robert Haas wrote: > On Thu, May 21, 2015 at 12:21 PM, Andrew Gierth > wrote: > >>>>>> "David" == David Fetter writes: > > > > David> How about a more sensible data structure as a PG-specific addon. &

Re: [HACKERS] GROUPING

2015-05-21 Thread David Fetter
? How about a more sensible data structure as a PG-specific addon. GROUPING_JSON() seems like just the thing. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! C

[HACKERS] GROUPING

2015-05-20 Thread David Fetter
reate something like GROUPING_JSON(). Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sen

[HACKERS] tzdata and 9.4.2, etc.

2015-05-04 Thread David Fetter
Folks, We are now three tzdata changes behind. There are bugs in pg_dump which create real restore errors for people using PostGIS, one of our most popular extensions. Can we please wrap and ship 9.4.2, etc., and do it soon? Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235

Re: [HACKERS] Implementing SQL ASSERTION

2015-05-02 Thread David Fetter
get to, and then post further to > this list, if there is interest. I suspect that you would get a lot further with a PoC patch including the needed documentation. Remember to include how this would work at all the transaction isolation levels and combinations of same that we support. Recall a

Re: [HACKERS] ATSimpleRecursion() and inheritance foreign parents

2015-04-28 Thread David Fetter
On Tue, Apr 28, 2015 at 09:39:02PM +0900, Amit Langote wrote: > On Tue, Apr 28, 2015 at 9:28 PM, David Fetter wrote: > > On Tue, Apr 28, 2015 at 03:17:08PM +0900, Amit Langote wrote: > >> > >> An example, > >> postgres=# alter foreign table fparent alter a

Re: [HACKERS] ATSimpleRecursion() and inheritance foreign parents

2015-04-28 Thread David Fetter
'm pretty sure this is a bug. The way I see it, foreign tables can either fully participate in table inheritance, or not at all, because any inconsistencies here will cause confusion at best. How big a deal would it be to fix it? Cheers, David. -- David Fetter http://fetter.org/ Phone:

Re: [HACKERS] inherit support for foreign tables

2015-04-16 Thread David Fetter
d, then partitions under it called foo_jp, foo_us, etc., in one level, foo_us_ca, foo_us_pa, etc. in the next level, and on down, each in general in a separate data center. Is there something essential about having non-leaf nodes as foreign tables that's a problem here? Cheers, David. --

Re: [HACKERS] Assert there is no duplicated exit callbacks

2015-04-15 Thread David Fetter
ook there. If > we don't agree with this, then the duplication check shall also bump > to runtime checks. I don't think any of this is needed. - Heikki -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP:

Re: [HACKERS] Make more portable TAP tests of initdb

2015-04-14 Thread David Fetter
that promise always rather than search case by case, at least up to bugs in the version-checking software. http://search.cpan.org/~rjbs/Test-MinimumVersion-0.101081/lib/Test/MinimumVersion.pm What say? Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yah

Re: [HACKERS] PATCH: Spinlock Documentation

2015-04-05 Thread David Fetter
for the community.   One issue with this patch is that it is not localized. If someone goes and changes the S_LOCK implementation for one of the platforms below, or adds a new platform, etc., without changing this comment too, this comment becomes confusingly obsolete. How do you plan to addres

Re: [HACKERS] POLA violation with \c service=

2015-04-01 Thread David Fetter
On Thu, Apr 02, 2015 at 11:46:53AM +0900, Michael Paquier wrote: > On Thu, Apr 2, 2015 at 9:38 AM, Alvaro Herrera > wrote: > > > > David Fetter wrote: > > > On Wed, Apr 01, 2015 at 08:13:02PM -0300, Alvaro Herrera wrote: > > > > I have pushed this af

Re: [HACKERS] POLA violation with \c service=

2015-04-01 Thread David Fetter
ferent hosts might work, but I'll see what I can do. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/

Re: [HACKERS] Bug fix for missing years in make_date()

2015-04-01 Thread David Fetter
On Tue, Mar 31, 2015 at 12:22:39PM -0700, David Fetter wrote: > On Tue, Mar 31, 2015 at 12:58:27PM -0400, Tom Lane wrote: > > David Fetter writes: > > > On Tue, Mar 31, 2015 at 10:34:45AM -0400, Adam Brightwell wrote: > > >> Previously, zero was rejected, wh

Re: [HACKERS] Bug fix for missing years in make_date()

2015-03-31 Thread David Fetter
On Tue, Mar 31, 2015 at 12:58:27PM -0400, Tom Lane wrote: > David Fetter writes: > > On Tue, Mar 31, 2015 at 10:34:45AM -0400, Adam Brightwell wrote: > >> Previously, zero was rejected, what does it do now? I'm sure it > >> represents 0 AD/CE, however, is that imp

Re: [HACKERS] Bug fix for missing years in make_date()

2015-03-31 Thread David Fetter
There should probably be tests for that. The issue here is that zero was popularized a very long time after the beginning of the Common Era. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmai

Re: [HACKERS] Exposing PG_VERSION_NUM in pg_config

2015-03-30 Thread David Fetter
ering depending on backend version. So basically, extension writers get to win a Rube Goldberg if they use it for actually building software :/ Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david

Re: [HACKERS] Bug fix for missing years in make_date()

2015-03-30 Thread David Fetter
On Mon, Mar 30, 2015 at 05:35:29PM -0500, Jim Nasby wrote: > On 3/26/15 5:26 PM, David Fetter wrote: > >+ * Note: Non-positive years are take to be BCE. > > s/take/taken/ Good point. Next patch attached. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 41

[HACKERS] Bug fix for missing years in make_date()

2015-03-26 Thread David Fetter
Folks, For reasons unclear, dates before the Common Era are disallowed in make_date(), even though about 2/3 of the underlying data type's range up until the present time fits that description. Please find attached a patch fixing same. Cheers, David. -- David Fetter http://fetter.org/

Re: [HACKERS] Exposing PG_VERSION_NUM in pg_config

2015-03-24 Thread David Fetter
xt, > yadda yadda). So I'm not in favor of doing the latter without a much > more solid case than has been made. Would PG_VERSION_NUM in the Makefile actually help writers of extensions to do numeric comparisons on the version of PostgreSQL in a way that doesn't win a Rube Goldberg

Re: [HACKERS] Remove fsync ON/OFF as a visible option?

2015-03-21 Thread David Fetter
zation on or > off" could stand improvement; it really conveys zero information. Maybe > something like "force data to disk when committing"? > > Also, whatever we do here should be reflected into the description strings > in guc.c. I don't suppose there's

Re: [HACKERS] POLA violation with \c service=

2015-03-20 Thread David Fetter
On Fri, Feb 27, 2015 at 08:42:29AM -0800, David Fetter wrote: > On Mon, Feb 23, 2015 at 05:56:12PM -0300, Alvaro Herrera wrote: > > > > David Fetter wrote: > > > > > My thinking behind this was that the patch is a bug fix and intended > > > to be back-patc

Re: [HACKERS] OOM-killer issue when updating a inheritance table which has large number of child tables

2015-03-12 Thread David Fetter
Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-hackers mailing list (pgsql-hackers

Re: [HACKERS] Using 128-bit integers for sum, avg and statistics aggregates

2015-03-09 Thread David Fetter
er state. Would it be simpler to write a separate patch to add an int16 SQL type so that this implication is correct? > The worst part of writing this patch has always been naming functions and > types. :) Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: d

Re: [HACKERS] POLA violation with \c service=

2015-03-04 Thread David Fetter
On Tue, Mar 03, 2015 at 09:52:55PM -0500, Robert Haas wrote: > On Mon, Mar 2, 2015 at 5:05 PM, David Fetter wrote: > > So just to clarify, are you against back-patching the behavior > > change, or the addition to src/common? > > Mostly the latter. So you're saying

Re: [HACKERS] Idea: GSoC - Query Rewrite with Materialized Views

2015-03-03 Thread David Fetter
statement. > > Ah, like > https://www.postgresql.org/message-id/1402790204.65037.YahooMailNeo%40web122301.mail.ne1.yahoo.com Yes, very much like that. Kevin, might you be able to give some guidance on this? Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM:

Re: [HACKERS] POLA violation with \c service=

2015-03-02 Thread David Fetter
On Mon, Mar 02, 2015 at 04:52:37PM -0500, Robert Haas wrote: > On Mon, Feb 23, 2015 at 3:56 PM, Alvaro Herrera > wrote: > > David Fetter wrote: > > > >> My thinking behind this was that the patch is a bug fix and intended > >> to be back-patched, so I wanted t

Re: [HACKERS] POLA violation with \c service=

2015-02-27 Thread David Fetter
On Fri, Feb 27, 2015 at 02:51:18PM -0300, Alvaro Herrera wrote: > I don't understand. Why don't these patches move anything to > src/common? Because I misunderstood the scope. Hope to get to those this evening. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 4

Re: [HACKERS] Bug in pg_dump

2015-02-27 Thread David Fetter
check would be a good nice. The patch footprint is pretty low so we > may be able to backport this patch easily. +1 for backporting. It's a real bug, and real people get hit by it if they're using PostGIS, one of our most popular add-ons. Cheers, David. -- David Fetter http

Re: [HACKERS] POLA violation with \c service=

2015-02-27 Thread David Fetter
On Mon, Feb 23, 2015 at 05:56:12PM -0300, Alvaro Herrera wrote: > > David Fetter wrote: > > > My thinking behind this was that the patch is a bug fix and intended > > to be back-patched, so I wanted to mess with as little infrastructure > > as possible. A new version

Re: [HACKERS] PostgreSQL on z/OS UNIX?

2015-02-24 Thread David Fetter
.postgresql.org/ Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-hack

Re: [HACKERS] POLA violation with \c service=

2015-02-20 Thread David Fetter
On Fri, Feb 20, 2015 at 05:55:20PM -0300, Alvaro Herrera wrote: > Pavel Stehule wrote: > > 2015-02-20 8:22 GMT+01:00 David Fetter : > > > > > On Fri, Feb 20, 2015 at 07:10:29AM +0100, Pavel Stehule wrote: > > > > Hi > > > > > > > > I am

Re: [HACKERS] POLA violation with \c service=

2015-02-19 Thread David Fetter
I'll mark this patch as ready for commit. Thanks for fixing the bug. Let's go with this. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! C

Re: [HACKERS] POLA violation with \c service=

2015-02-19 Thread David Fetter
On Thu, Feb 19, 2015 at 09:32:29PM +0100, Pavel Stehule wrote: > 2015-02-19 19:51 GMT+01:00 David Fetter : > > > On Sun, Feb 01, 2015 at 08:38:24AM +0100, Pavel Stehule wrote: > > > > I'm not sure how best to illustrate those. Are you thinking of one > > ex

Re: [HACKERS] POLA violation with \c service=

2015-02-19 Thread David Fetter
ing; Changed. This is cleaner. > I have not any other comments. > > Possible questions: > 1. more examples in doc I'm not sure how best to illustrate those. Are you thinking of one example each for the URI and conninfo cases? > 2. small change how to check keep_password

Re: [HACKERS] Add min and max execute statement time in pg_stat_statement

2015-02-19 Thread David Fetter
On Wed, Feb 18, 2015 at 08:31:09PM -0700, David G. Johnston wrote: > On Wed, Feb 18, 2015 at 6:50 PM, Andrew Dunstan wrote: > > On 02/18/2015 08:34 PM, David Fetter wrote: > > > >> On Tue, Feb 17, 2015 at 08:21:32PM -0500, Peter Eisentraut wrote: > >> > >

Re: [HACKERS] Add min and max execute statement time in pg_stat_statement

2015-02-18 Thread David Fetter
g the population variance. Why population variance and not sample variance? In distributions where the second moment about the mean exists, it's an unbiased estimator of the variance. In this, it's different from the population variance. Cheers, David. -- David Fetter http://fetter.or

Re: [HACKERS] RangeType internal use

2015-02-13 Thread David Fetter
On Fri, Feb 13, 2015 at 03:13:11PM -0600, Jim Nasby wrote: > On 2/10/15 2:04 PM, David Fetter wrote: > >>>> >Yeah, but people expect to be able to partition on ranges that are not > >>>> >all of equal width. I think any proposal that we shouldn't sup

Re: [HACKERS] ibm system z in the buildfarm

2015-02-11 Thread David Fetter
cgi-bin/show_history.pl?nm=nudibranch&br=HEAD That's super awesome! Do you have access to put a z/OS animal there, too? The compilers available for that OS, as well as the OS itself, should make for some very interesting results. Cheers, David. -- David Fetter http://fetter.org/ Phon

Re: [HACKERS] 9.6 Feature help requested: Inclusion Constraints

2015-02-11 Thread David Fetter
on is there. In both cases, permission for a tuple to exist is based on another other tuple's presence with some generalized equality criterion. In the exclusion case, it's prevented. In the inclusion case, it's required. Cheers, David. -- David Fetter http://fetter.o

Re: [HACKERS] RangeType internal use

2015-02-10 Thread David Fetter
r that is an equivalence relation, however it's denoted. In practical terms, you'd need to have a quick way to enumerate the equivalence classes and another to establish whether equivalence holds. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666

Re: [HACKERS] Release note bloat is getting out of hand

2015-02-03 Thread David Fetter
page," for those using web browsers, would really smooth off some burrs. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: htt

Re: [HACKERS] Release note bloat is getting out of hand

2015-02-03 Thread David Fetter
gt;the doc build that I wind up waiting for at the end. > > I realize this is slightly OT, but I wonder if it might be worth having > targets that build and install everything but the docs. That'd be great. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778

Re: [HACKERS] Proposal: knowing detail of config files via SQL

2015-01-30 Thread David Fetter
On Sat, Jan 31, 2015 at 12:50:20AM +0900, Sawada Masahiko wrote: > On Sat, Jan 31, 2015 at 12:24 AM, David Fetter wrote: > > On Fri, Jan 30, 2015 at 09:38:10PM +0900, Sawada Masahiko wrote: > >> On Tue, Jan 27, 2015 at 3:34 AM, Robert Haas wrote: > >> > On Thu, Jan

Re: [HACKERS] Exposing the stats snapshot timestamp to SQL

2015-01-30 Thread David Fetter
; option :-(. Given that this has been deprecated for years, maybe it's time we took it out in 9.5. That the interested parties haven't bothered to put buildfarm members in that use the option tells me that they're not all that interested. Cheers, David. -- David Fetter h

Re: [HACKERS] Proposal: knowing detail of config files via SQL

2015-01-30 Thread David Fetter
| > sourcefile > ++ > max_connections| 100| > /home/masahiko/pgsql/master/3data/postgresql.conf > shared_buffers | 128MB

Re: [HACKERS] Make hba available to client code

2015-01-28 Thread David Fetter
On Wed, Jan 28, 2015 at 04:10:42PM -0500, Tom Lane wrote: > David Fetter writes: > > While investigating another project, namely adding pg_hba.conf support > > to pgbouncer, I ran into a stumbling block others probably will, too: > > the hba code is backend-only, which means

[HACKERS] Make hba available to client code

2015-01-28 Thread David Fetter
ergic to copypasta, so unless there are big objections, I'd like to export those functions to make hba available to other code. Objections? Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...

Re: [HACKERS] Parallel Seq Scan

2015-01-27 Thread David Fetter
Q21 > I see a speedup of ~100% when using IndexScan prefetching + Nested-Loops > Look-Ahead (the outer loop!). > (On SSD with 32 Pages Prefetch/Look-Ahead + Cold Page Cache / Small RAM) Would you be so kind as to pass along any patches (ideally applicable to git master), tests, and specif

Re: [HACKERS] [REVIEW] Re: Fix xpath() to return namespace definitions

2015-01-18 Thread David Fetter
t; > > > Wow. Thanks. > > Btw, for bug-fix patches like this, should the patch creator (me) also > create patches for back branches? As I understand it, back-patches are the committer's responsibility. The submitter might make suggestions as to how this might be approac

Re: [HACKERS] POLA violation with \c service=

2015-01-13 Thread David Fetter
On Sat, Jan 10, 2015 at 04:41:16PM -0800, David Fetter wrote: > On Sat, Jan 10, 2015 at 09:30:57AM +0100, Erik Rijkers wrote: > > On Fri, January 9, 2015 20:15, David Fetter wrote: > > > [psql_fix_uri_service_003.patch] > > > > Applies on master; the feature (switch

Re: [HACKERS] To do for psql to show installable extensions

2015-01-12 Thread David Fetter
\dx+, but the + is already used to show the objects associated with the > extensions. (Althought it seems like it would more in keeping with other > usage if \dx+ only listed the objects if it was given a pattern, and did > what I propose if given no pattern) For what it's worth, of

Re: [HACKERS] libpq 9.4 requires /etc/passwd?

2015-01-10 Thread David Fetter
in wrapper around PQconnectdbParams? +1 for this. Having a single point of truth here would be a big win. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider don

Re: [HACKERS] POLA violation with \c service=

2015-01-10 Thread David Fetter
On Sat, Jan 10, 2015 at 09:30:57AM +0100, Erik Rijkers wrote: > On Fri, January 9, 2015 20:15, David Fetter wrote: > > [psql_fix_uri_service_003.patch] > > Applies on master; the feature (switching services) works well but a \c > without any parameters produces a segfault

Re: [HACKERS] POLA violation with \c service=

2015-01-09 Thread David Fetter
On Thu, Jan 08, 2015 at 08:04:47PM -0800, David Fetter wrote: > On Mon, Jan 05, 2015 at 02:26:59PM -0800, David Fetter wrote: > > On Tue, Dec 30, 2014 at 04:48:11PM -0800, David Fetter wrote: > > > On Wed, Dec 17, 2014 at 08:14:04AM -0500, Andrew Dunstan wrote: > > >

Re: [HACKERS] POLA violation with \c service=

2015-01-08 Thread David Fetter
On Mon, Jan 05, 2015 at 02:26:59PM -0800, David Fetter wrote: > On Tue, Dec 30, 2014 at 04:48:11PM -0800, David Fetter wrote: > > On Wed, Dec 17, 2014 at 08:14:04AM -0500, Andrew Dunstan wrote: > > > > > > Yeah, that's the correct solution. It should not be terr

Re: [HACKERS] INSERT ... ON CONFLICT UPDATE and RLS

2015-01-07 Thread David Fetter
On Wed, Jan 07, 2015 at 05:18:58PM -0800, Peter Geoghegan wrote: > On Wed, Jan 7, 2015 at 5:16 PM, David Fetter wrote: > > There's precedent. Unique constraints, for example. > > I don't see that as any kind of precedent. In the part you sliced off, Stephen descri

Re: [HACKERS] INSERT ... ON CONFLICT UPDATE and RLS

2015-01-07 Thread David Fetter
ppens, of course, but I really don't like the idea that the > exact same command, with the exact same policies, would succeed or fail, > due to policies, based on the data in the database. There's precedent. Unique constraints, for example. Cheers, David. -- David Fetter ht

Re: [HACKERS] POLA violation with \c service=

2015-01-05 Thread David Fetter
On Tue, Dec 30, 2014 at 04:48:11PM -0800, David Fetter wrote: > On Wed, Dec 17, 2014 at 08:14:04AM -0500, Andrew Dunstan wrote: > > > > Yeah, that's the correct solution. It should not be terribly difficult to > > create a test for a conninfo string in the dbname parame

Re: [HACKERS] event trigger test exception message

2015-01-04 Thread David Fetter
llowed.'; > > Quite apart from any other reason, the "Sir" does seem a bit sexist - we > have no idea of the gender of the reader. Probably just 'sorry, no rewrite > allowed' would suffice. We should change it to, "I'm sorry. I can't do that.&q

Re: [HACKERS] Small doc patch about pg_service.conf

2015-01-03 Thread David Fetter
On Sat, Jan 03, 2015 at 03:03:45PM -0500, Tom Lane wrote: > David Fetter writes: > > On Sat, Jan 03, 2015 at 02:36:50PM -0500, Noah Misch wrote: > >> The old and the new documentation are both wrong. The directory libpq > >> consults is `pg_config --sysconfdir`, whi

Re: [HACKERS] Small doc patch about pg_service.conf

2015-01-03 Thread David Fetter
On Sat, Jan 03, 2015 at 02:36:50PM -0500, Noah Misch wrote: > On Sat, Jan 03, 2015 at 01:22:02PM +0100, Magnus Hagander wrote: > > On Wed, Dec 31, 2014 at 3:24 PM, David Fetter wrote: > > > There was a slash missing, which I've added. Where is the default > > > d

Re: [HACKERS] Small doc patch about pg_service.conf

2015-01-03 Thread David Fetter
On Sat, Jan 03, 2015 at 01:22:02PM +0100, Magnus Hagander wrote: > On Wed, Dec 31, 2014 at 3:24 PM, David Fetter wrote: > > > Folks, > > > > There was a slash missing, which I've added. Where is the default > > directory on Windows, or is there one? > >

[HACKERS] Small doc patch about pg_service.conf

2014-12-31 Thread David Fetter
Folks, There was a slash missing, which I've added. Where is the default directory on Windows, or is there one? Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to

Re: [HACKERS] POLA violation with \c service=

2014-12-30 Thread David Fetter
On Wed, Dec 17, 2014 at 08:14:04AM -0500, Andrew Dunstan wrote: > > On 12/17/2014 04:11 AM, Heikki Linnakangas wrote: > >On 12/17/2014 10:03 AM, Albe Laurenz wrote: > >>David Fetter wrote: > >>>I've noticed that psql's \c function handles serv

Re: [HACKERS] POLA violation with \c service=

2014-12-20 Thread David Fetter
On Fri, Dec 19, 2014 at 07:03:36PM -0700, David Johnston wrote: > On Wed, Dec 17, 2014 at 8:25 AM, David Fetter [via PostgreSQL] < > ml-node+s1045698n5831124...@n5.nabble.com> wrote: > > > On Wed, Dec 17, 2014 at 08:14:04AM -0500, Andrew Dunstan wrote: > > > &g

Re: [HACKERS] NUMERIC private methods?

2014-12-19 Thread David Fetter
e included header that breakable stuff is being used seems like an excellent way to proceed. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: htt

Re: [HACKERS] POLA violation with \c service=

2014-12-17 Thread David Fetter
On Wed, Dec 17, 2014 at 08:14:04AM -0500, Andrew Dunstan wrote: > > On 12/17/2014 04:11 AM, Heikki Linnakangas wrote: > >On 12/17/2014 10:03 AM, Albe Laurenz wrote: > >>David Fetter wrote: > >>>I've noticed that psql's \c function handles serv

[HACKERS] POLA violation with \c service=

2014-12-16 Thread David Fetter
ion. Is there another one I missed? If not, which of the approaches seems reasonable? Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres

Re: [HACKERS] Commitfest problems

2014-12-16 Thread David Fetter
./configure doesn't work, or that the code doesn't compile: elapsed time <= 5 minutes. Or you can keep moving until you have made progress for the time you've allotted. But the bigger issue, as others have pointed out, has never been a technical one. It's motivating people w

Re: [HACKERS] NUMERIC private methods?

2014-12-16 Thread David Fetter
ove it deserves. Perhaps something along the lines of a 128-bit default structure with a promotion/demotion scheme for larger representations. Until then, those of us writing extensions are stuck with heaps of extra instructions in it that could easily be trimmed away to good effect. Cheers, D

[HACKERS] NUMERIC private methods?

2014-12-15 Thread David Fetter
as an opaque blob? Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-hackers m

Re: [HACKERS] On partitioning

2014-12-13 Thread David Fetter
hat will make it really hard to add > later. Indeed not :) Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: http://www.postgresql

Re: [HACKERS] pg_rewind in contrib

2014-12-13 Thread David Fetter
ommand-line > tools into src/bin/. If it should be there it'd be less code churn > if it went into there in the first place. +1 for putting it directly in src/bin. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidf

Re: [HACKERS] moving Orafce from pgFoundry - pgFoundry management

2014-12-13 Thread David Fetter
ndry references from the IRC documentation bot and replaced them with references to github. Marc, Could you please remove the Orafce project from pgFoundry? Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: da

Re: [HACKERS] Commitfest problems

2014-12-12 Thread David Fetter
On Fri, Dec 12, 2014 at 04:21:43PM +0100, Andres Freund wrote: > On 2014-12-12 07:10:40 -0800, David Fetter wrote: > > On Thu, Dec 11, 2014 at 05:55:56PM -0500, Tom Lane wrote: > > > Josh Berkus writes: > > > > How about *you* run the next one, Tom? > > > &

Re: [HACKERS] Commitfest problems

2014-12-12 Thread David Fetter
ect, Tom, you seem to carve off an enormous amount of time to follow -bugs and -general. What say you unsubscribe to those lists for the duration of your tenure as CFM? Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter

Re: [HACKERS] inherit support for foreign tables

2014-12-06 Thread David Fetter
rent (cost=0.00..280.77 rows=25 width=10) >On public.ft1 > Remote SQL: UPDATE public.mytable_1 SET a = $2 WHERE ctid = $1 ^^ It occurs to me that the command generated by the FDW might well not be SQL at all, as is the case with file_fdw and anything else that talks to a N

Re: [HACKERS] SSL regression test suite

2014-12-04 Thread David Fetter
, even if it has some rough edges. That > way we can improve it later, rather than have it fall into oblivion. > Any objections? Not from me :) Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.f

Re: [HACKERS] postgres_fdw does not see enums

2014-12-03 Thread David Fetter
On Wed, Dec 03, 2014 at 06:17:51PM -0500, Tom Lane wrote: > David Fetter writes: > > On Wed, Dec 03, 2014 at 05:52:03PM -0500, Tom Lane wrote: > >> What do you mean "reconstruct the enum"? > > > Capture its state at the time when IMPORT FOREIGN SCHEMA i

Re: [HACKERS] postgres_fdw does not see enums

2014-12-03 Thread David Fetter
On Wed, Dec 03, 2014 at 05:52:03PM -0500, Tom Lane wrote: > David Fetter writes: > > On Wed, Dec 03, 2014 at 05:38:47PM -0500, Tom Lane wrote: > >> No. How would you know whether the remote side even has the enum, > >> let alone whether it has an identical set of memb

Re: [HACKERS] postgres_fdw does not see enums

2014-12-03 Thread David Fetter
On Wed, Dec 03, 2014 at 05:38:47PM -0500, Tom Lane wrote: > David Fetter writes: > > I've been trying out 9.5-to-be's PostgreSQL FDW, and I noticed > > that it doesn't seem to handle enum types. Would this be a > > trivial fix? > > No. How would you

[HACKERS] postgres_fdw does not see enums

2014-12-03 Thread David Fetter
le_name 'foo'); CONTEXT: importing foreign table "foo" Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: http:

<    1   2   3   4   5   6   7   8   9   10   >