Re: [GENERAL] INDEX ONLY scan with expression index

2016-03-07 Thread Tom Lane
le for an IOS. As a small consolation prize, it might let you get an IOS on cases where you *do* need x as well. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Exclude pg_largeobject form pg_dump

2016-03-08 Thread Tom Lane
pg_dump -t '*' ... although this will result in *all* non-schema-named objects being excluded, I believe, which might be a problem. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Exclude pg_largeobject form pg_dump

2016-03-08 Thread Tom Lane
Andreas Joseph Krogh writes: > What I'm looking for is "inverse -b" in an otherwise complete dump. Any plans > to add that? [ shrug... ] Nobody ever asked for it before. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@po

Re: [GENERAL] Exclude pg_largeobject form pg_dump

2016-03-08 Thread Tom Lane
27;t try to dump system catalogs as tables, even if the switches seem to ask it to. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Plan to support predicate push-down into subqueries with aggregates?

2016-03-08 Thread Tom Lane
7;s safe or not. (It does, on the other hand, know very well that SQL equality operators don't necessarily guarantee bitwise identity.) So I'd suggest just modifying your queries to write out both constraints explicitly. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] pg_upgrade error regarding hstore operator

2016-03-08 Thread Tom Lane
he extension will properly look like it's 1.1 after pg_upgrade'ing. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] OS X 10.11.3, psql, bus error 10, 9.5.1

2016-03-11 Thread Tom Lane
ftware development work. Here's what I have bookmarked about turning it off: http://www.howtogeek.com/230424/how-to-disable-system-integrity-protection-on-a-mac-and-why-you-shouldnt/ If turning off SIP doesn't fix things, we'll need to look closer. rega

Re: [GENERAL] OS X 10.11.3, psql, bus error 10, 9.5.1

2016-03-12 Thread Tom Lane
Chris Ruprecht writes: > no such luck (no easy fix). I turned SIP off and rebuilt PG 9.5.1, copied > libpq.5.8.dylib to /usr/lib, bent the two sym links to the new library but > I'm still getting "Bus error: 10". You owe somebody a nickel, Tom ;). Oh well. Personally

Re: [GENERAL] "brew services list" shows postgresql as "started", but can not connect to it

2016-03-13 Thread Tom Lane
ly there is some documentation included with the homebrew PG package that explains that. But if not, perhaps a look into the launch-agent script mentioned above would tell you. Look for something like a -l argument to pg_ctl, or a redirection of stderr into a file. regards, to

[GENERAL] retrieve grouping sets/rollup rows

2016-03-13 Thread Tom Smith
Hello: With JDBC, how can I tell which row is for which grouping sets or rollup using result sets Thanks

Re: [GENERAL] retrieve grouping sets/rollup rows

2016-03-13 Thread Tom Smith
(a,b) or (c,d) group? All rows > will contain (a,b,c,d) but (a,b) will be NULL for the (c,d) grouping > sets, and vice-versa. > > Jim > > On 03/13/2016 09:45 PM, Tom Smith wrote: > > Hello: > > > > With JDBC, how can I tell which row is for which groupi

Re: [GENERAL] retrieve grouping sets/rollup rows

2016-03-13 Thread Tom Lane
>> On 03/13/2016 10:07 PM, Tom Smith wrote: >>> It would help if the resultset has some param to mark which is which >>> with the grouping sets index. I think you're looking for the GROUPING() function. See http://www.postgresql.org/docs/9.5/st

Re: [GENERAL] retrieve grouping sets/rollup rows

2016-03-13 Thread Tom Smith
exactly what I am looking for. very nice. Thx On Sun, Mar 13, 2016 at 10:44 PM, Tom Lane wrote: > >> On 03/13/2016 10:07 PM, Tom Smith wrote: > >>> It would help if the resultset has some param to mark which is which > >>> with the grouping sets index. &

Re: [GENERAL] Drop only temporary table

2016-03-18 Thread Tom Lane
it masks any normal table of the same name (unless you use a schema-qualified reference to the normal table). regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [HACKERS] [GENERAL] Request - repeat value of \pset title during \watch interations

2016-03-18 Thread Tom Lane
David Steele writes: > On 3/17/16 7:00 PM, Tom Lane wrote: >> The message I saw was post-1-March. If it was in fact submitted in >> time for 2016-03, then we owe it a review. > I meant to add the CF record and forgot: > https://commitfest.postgresql.org/9/480 > It

Re: [GENERAL] Error: insufficient data in the message

2016-03-19 Thread Tom Lane
Michael Paquier writes: > On Fri, Mar 18, 2016 at 9:00 AM, Tom Lane wrote: >> Hmm ... I can't find the string "insufficient data in the message" >> anywhere in the Postgres sources. And not "pgsql_pexec" either. >> 2016-03-16 17:35:07 BRT ERRO:

Re: [GENERAL] Confusing deadlock report

2016-03-19 Thread Tom Lane
ect of some previous insert? regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] spurious /dev/shm related errors on insert

2016-03-19 Thread Tom Lane
ing: No such file or directory Offhand I do not believe that any part of the core PG code would attempt to access such a file. Maybe you've got some extensions in there that would do so? regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@post

Re: [GENERAL] Error: insufficient data in the message

2016-03-19 Thread Tom Lane
c" either. So this must be coming from some client-side code you're using (not libpq). It's unlikely we can help you much here; you need to chat with the author of the client-side library that's emitting that error. regards, tom lane -- Sent via pgsql-gene

Re: [HACKERS] [GENERAL] Request - repeat value of \pset title during \watch interations

2016-03-20 Thread Tom Lane
post-1-March. If it was in fact submitted in time for 2016-03, then we owe it a review. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [HACKERS] [GENERAL] Request - repeat value of \pset title during \watch interations

2016-03-21 Thread Tom Lane
need to repeat the magic constant 50 in several places. Also, I think the patch makes do_watch return the wrong result code for the (typical) case where we exit because of query cancel not PSQLexecWatch failure. So on the whole, I'd do it as attached. regards, tom lane

Re: [HACKERS] [GENERAL] Request - repeat value of \pset title during \watch interations

2016-03-21 Thread Tom Lane
y My Title (5 s) Mon Mar 21 13:39:25 2016 repeat -- xyzzyxyzzyxyzzyxyzzyxyzzyxyzzyxyzzyxyzzyxyzzyxyzzyxyzzyxyzzy (1 row) But I don't care enough to veto it. Anyone else have an o

Re: [GENERAL] postgresql timezone and OS localtime correspondence

2016-03-21 Thread Tom Lane
than setting it manually in red hat family > systems? You could make your own symlink, though I'm unsure whether it'd survive tzdata package updates. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Slow GIN indexes after bulk insert

2016-03-21 Thread Tom Lane
ere available in 9.3.) Worthy of note here is that the max pending list size is governed by work_mem, so a large work_mem can make this effect worse. (We got smart and made it an independent setting, but not till 9.5.) regards, tom lane -- Sent via pgsql-general mailing

Re: [GENERAL] [HACKERS] Request - repeat value of \pset title during \watch interations

2016-03-21 Thread Tom Lane
> when the last one ran and how often it is supposed to run is useful info to > have at ones fingertips. That's not unreasonable. I just want it to look less weirdly different between the two cases. regards, tom lane -- Sent via pgsql-general mailing list (

Re: [GENERAL] [HACKERS] Request - repeat value of \pset title during \watch interations

2016-03-21 Thread Tom Lane
Alvaro Herrera writes: > (I'll also use this opportunity to complain again about not being able > to use floating point sleep time.) That's not unreasonable either, though it seems like material for a separate patch. regards, tom lane -- Sent via pgsql

Re: [GENERAL] Slow GIN indexes after bulk insert

2016-03-21 Thread Tom Lane
regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Request - repeat value of \pset title during \watch interations

2016-03-21 Thread Tom Lane
"David G. Johnston" writes: > On Monday, March 21, 2016, Tom Lane wrote: >> What about just discarding the old format entirely, and printing one of >> these two things: >> >> Timestamp (every Ns) >> >> User Given Title Timestamp (every Ns) >

Re: [GENERAL] How to quote the COALESCE function?

2016-03-28 Thread Tom Lane
already found one good way: if it doesn't have a pg_proc entry then it's a special case of some sort or other. Have you considered only quoting the function name if it actually needs it, ie, contains special characters? regards, tom lane -- Sent via pgsql-general

Re: [GENERAL] pg_restore casts check constraints differently

2016-03-29 Thread Tom Lane
licit casts explicitly to ensure that the expression is parsed the same way next time. It might be overly conservative to do so, but we've found that erring in this direction tends to avoid breakage when the result is loaded into another server version; it's a bit like the intentional overpare

Re: [GENERAL] pg_restore casts check constraints differently

2016-03-29 Thread Tom Lane
"David G. Johnston" writes: > On Tue, Mar 29, 2016 at 2:45 PM, Tom Lane wrote: >> It's not really different. What you're seeing is pg_dump (or actually >> ruleutils.c) choosing to dump some implicit casts explicitly to ensure >> that the expression is

Re: [GENERAL] Missed LIMIT clause pushdown in FDW API

2016-03-30 Thread Tom Lane
--- but that's not the same as telling the remote planner to prefer a fast-start plan. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] pg_restore casts check constraints differently

2016-03-30 Thread Tom Lane
"p_a_check" CHECK (a::text = ANY (ARRAY['a'::text, 'b'::text, 'c'::text])) I wonder why you don't get an array of text constants in the IN case. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Is it possible to delete a single value from an enum type?

2016-03-31 Thread Tom Lane
ex entry. Concerns like this are exactly why there is no ALTER TYPE DELETE VALUE, and probably never will be. If you need a non-fixed set of key values, you're much better off using a foreign key instead of an enum type. regards, tom lane -- Sent via pgsql-ge

Re: [GENERAL] postgresql 9.3.10, FIPS mode and DRBG issues.

2016-04-04 Thread Tom Lane
cure. So my guess is that psql is trying to configure OpenSSL with some inadequately-secure settings. Not sure why it'd be different from the server though. Are you sure psql and the libpq it's using are same version as the apparently-working server? regards

Re: [GENERAL] Exclude constraint using custom operator

2016-04-06 Thread Tom Lane
s determined by the code in the opclass support functions (primarily, what the "consistent" function knows how to do). You'd have to go fiddle with that C code before you could add a new operator to the opclass. regards, tom lane -- Sent via pgsql-g

Re: [GENERAL] pg_upgrade error regarding hstore operator

2016-04-06 Thread Tom Lane
"Feld, Michael (IMS)" writes: > Thanks for the assist Tom. That worked for us. Noticing a different > issue following the pg_upgrade. If we take a pg_dump of a database on > this upgraded instance with the hstore extension and try to pg_restore > it back up to the sa

Re: [GENERAL] Non-default postgresql.conf values to log

2016-04-07 Thread Tom Lane
Alex Ignatov writes: > My question is: is there any option(s) to log non-default > postgresql.conf values to log file? No, but you can easily find all the non-default settings by querying the pg_settings view. regards, tom lane -- Sent via pgsql-general mailin

Re: [GENERAL] Non-default postgresql.conf values to log

2016-04-07 Thread Tom Lane
onfiguration file settings, so I'm not buying the "historical info" angle at all.) regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] max_stack_depth problem though query is substantially smaller

2016-04-08 Thread Tom Lane
explicitly-represented state stack. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] max_stack_depth problem though query is substantially smaller

2016-04-08 Thread Tom Lane
r report. https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_backend regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Really unique session ID - PID + connection timestamp?

2016-04-09 Thread Tom Lane
o produce a session ID. I think we should just leave things as they are; people for whom timestamp + PID is good enough as a session ID already have a solution, and we should not mislead those for whom it isn't. regards, tom lane -- Sent via pgsql-general mailing list

Re: [GENERAL] max_stack_depth problem though query is substantially smaller

2016-04-09 Thread Tom Lane
uld look like a single hstore literal to the parser, and be processed much more quickly. If you insist on emitting SQL statements that have operators nested to such depths, then yes you'll need to increase max_stack_depth to whatever it takes to allow it. regards, tom lane

Re: [GENERAL] max_stack_depth problem though query is substantially smaller

2016-04-10 Thread Tom Lane
re". It's quite a different concept from the => notation inside an hstore literal. That is: 'foo'::text => 'bar'::text is not like '"foo" => "bar"'::hstore even though they have the same end result.

Re: [GENERAL] Freezing localtimestamp and other time function on some value

2016-04-12 Thread Tom Lane
with time-dependent behavior. As an example, you might accidentally write code that expects two successive transactions to see identical values of now(), and such a testbed wouldn't detect the problem. regards, tom lane -- Sent via pgsql-general mailin

Re: [GENERAL] Freezing localtimestamp and other time function on some value

2016-04-12 Thread Tom Lane
7;; SET regression=# select timeofday(); timeofday -- Sun Apr 17 18:01:58.293623 2016 +120 (1 row) regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes

Re: [GENERAL] pg_upgrade error regarding hstore operator

2016-04-12 Thread Tom Lane
"Feld, Michael (IMS)" writes: > Thanks for the reply Tom. template1 is definitely empty and does not contain > any hstore objects. I did a little debugging and placed the below SQL before > and after the hstore creation in the file produced by the pg_dump and > determin

Re: [GENERAL] Why is the comparison between timestamp and date so much slower then between two dates

2016-04-13 Thread Tom Lane
it with "localtimestamp" (no parens) instead of "now()" to see how it performs with a non-tz timestamp. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgr

Re: [GENERAL] [HACKERS] sign function with INTERVAL?

2016-04-13 Thread Tom Lane
regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Re: Why is the comparison between timestamp and date so much slower then between two dates

2016-04-14 Thread Tom Lane
ially not in your originally posted case where the up-conversion happens on the variable not the pseudo-constant. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] $foo $bar is BAD

2016-04-15 Thread Tom Lane
FWIW, the Jargon File (a/k/a Hackers Dictionary) says that "foo" can be traced back further than "fubar", making the OP's claim rather backwards. In any case, it's an old enough term that nobody is going to give it up on such grounds. http://www.catb.org/jargon/html/F/

Re: [GENERAL] Re: what's the exact command definition in read committed isolation level?

2016-04-18 Thread Tom Lane
t's marked STABLE or IMMUTABLE will see the same snapshot as the calling query, but a function that's VOLATILE will take a new snapshot for each query it contains. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make

Re: [GENERAL] error while installing auto_explain contrib module

2016-04-19 Thread Tom Lane
ure is that the auto_explain build is seeing a different value for PG_USE_INLINE than the main server build did. So probably your include path is picking up a pg_config.h that does not match the postgres executable the link is happening against. regards, tom lane --

Re: [GENERAL] How do BEGIN/COMMIT/ABORT operate in a nested SPI query?

2016-04-20 Thread Tom Lane
"abi" BYTEA, "anu" NUMERIC, "ate" TEXT, > "ati" TIMESTAMP, UNIQUE ( "abo", "abi", "anu", "ate", "ati" ) ); > COMMIT; > INSERT INTO "V6" ( "abo", "abi", "anu", &quo

Re: [GENERAL] How do BEGIN/COMMIT/ABORT operate in a nested SPI query?

2016-04-20 Thread Tom Lane
writes: > From: Tom Lane [mailto:t...@sss.pgh.pa.us] >> Define "executes". You could shove those lines in via the wire protocol, >> sure, but SPI won't take them. > Now you really have me puzzled. What I provided is an extract from the log > of generated SQ

Re: [GENERAL] Add relcreated (timestamp) column to pg_class catalog to record the time an object was created

2016-04-20 Thread Tom Lane
ation situations, and then you realize that the required semantics are far from clear. In practice, audit logs (which is a class of feature that we are working on) are a far better solution. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@p

Re: [GENERAL] RLS policy dump/restore failure due to elided type-casts

2016-04-20 Thread Tom Lane
e attribute value' = ANY (current_attributes())) It seems like you're going out of your way to complicate matters. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] RLS policy dump/restore failure due to elided type-casts

2016-04-20 Thread Tom Lane
Karl Czajkowski writes: > On Apr 20, Tom Lane modulated: >> Just out of curiosity, why are you doing it like that, and not simply >> USING ('example attribute value' = ANY (current_attributes())) >> It seems like you're going out of your way to complicat

Re: [GENERAL] Is it possible to call Postgres directly?

2016-04-20 Thread Tom Lane
whether that worked and kept working across releases. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] setting time zone in a function

2016-04-21 Thread Tom Lane
ant the setting to be local to this function. SET LOCAL/set_config(true) inside an exception block might work --- and you may well want an exception block anyway, to trap bad timezone names. Or you could explicitly save and restore the previous setting, which is more code but might be faster than a

Re: [GENERAL] Is it possible to call Postgres directly?

2016-04-21 Thread Tom Lane
omething similar. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] setting time zone in a function

2016-04-21 Thread Tom Lane
eviation and '.' being the DST zone abbreviation. If you wanted to restrict input to be the Olson-style zone names, you could do some kind of precheck, maybe insist on only letters/ slashes/underscores. regards, tom lane -- Sent via pgsql-general mailing list

Re: [GENERAL] different empty array syntax requirements

2016-04-21 Thread Tom Lane
now it should look through such a node. That's a bug. Will fix it. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Intemittendly get "server process (PID 5884) exited with exit code 3"

2016-04-25 Thread Tom Lane
is to restart postgres service. Or maybe the exit(3) is in an extension that is preloaded into all processes via shared_preload_libraries or similar? regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subs

Re: [GENERAL] Clarify "allow_system_table_mods"

2016-04-25 Thread Tom Lane
oncern about whether you can crash the system with it. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Clarify "allow_system_table_mods"

2016-04-25 Thread Tom Lane
to use them on a production database. I'm not sure what else we should do, short of writing "HERE BE DRAGONS" set in blackletter type. (Having said that, we could change "This is used by initdb." to "This is meant only for use by initdb". But I don't kno

Re: [GENERAL] Allow disabling folding of unquoted identifiers to lowercase

2016-04-29 Thread Tom Lane
dards compliant!" going for it. So I doubt we'd accept such a patch even if someone managed to create one. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Why don't custom GUCs show in pg_settings?

2016-04-30 Thread Tom Lane
#x27;t particularly approve of because it piled another hack on top of that mess without doing a thing to make it cleaner. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Vacuum of large tables causing replication delays to hot standby

2016-04-30 Thread Tom Lane
queries that are running against the master or > the standby, and the delay only subsides when the vacuum completes. What PG version might this be? regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your sub

Re: [GENERAL] JSONB performance enhancement for 9.6

2016-04-30 Thread Tom Smith
JSONB implementation, both common use cases (one is global doc indexing, the other is fast retrieval of individual values) would work out and make postgresql unbeatable. On Tue, Jan 19, 2016 at 8:51 PM, Bruce Momjian wrote: > On Mon, Jan 11, 2016 at 09:01:03PM -0500, Tom Smith wrote

Re: [GENERAL] JSONB performance enhancement for 9.6

2016-05-01 Thread Tom Smith
in the storage, all keys starting with "a" is in first segment, etc. On Sun, May 1, 2016 at 4:14 PM, Oleg Bartunov wrote: > > > On Sun, May 1, 2016 at 6:46 AM, Tom Smith > wrote: > >> Hello: >> >> I'd like to bring this JSONB performance issue a

Re: [GENERAL] Vacuum full of parent without partitions possible?

2016-05-03 Thread Tom Lane
ply cannot truncate the file while other queries are scanning it. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Field size become unlimited in union...

2016-05-03 Thread Tom Lane
text? Any mismatch of typmod will result in the merged column being considered to have no typmod. There is no provision for identifying a "common superset" typmod. It would have to be some type-specific API, since the encoding of typmod is type-specific; and we don't have one.

Re: [GENERAL] Debian and Postgres

2016-05-04 Thread Tom Lane
an over-aggressive packet filter. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Create index concurrently hanging with big table on pgsql 9.3.12

2016-05-09 Thread Tom Lane
is false, probably there isn't anything in pg_locks. Still, it'd be better to do "select * from pg_stat_activity where pid = 3990" and be sure. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Using both ident and password in pg_hba.conf

2016-05-09 Thread Tom Lane
pe with multiple challenges, which seems like a large assumption.) I don't have much of a feeling for how hard it would be to do in the server. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Create index concurrently hanging with big table on pgsql 9.3.12

2016-05-09 Thread Tom Lane
Robert Anderson writes: > Only one line returned: > postgres=# select * from pg_stat_activity where pid=3990; Aaah, sorry, that was a brain fade. I meant to ask about rows in pg_locks with that pid. regards, tom lane -- Sent via pgsql-general mailing list

Re: [GENERAL] Using both ident and password in pg_hba.conf

2016-05-09 Thread Tom Lane
"D'Arcy J.M. Cain" writes: > On Mon, 09 May 2016 17:12:22 -0400 > Tom Lane wrote: >> If the same user id + database combinations might be valid in both >> cases (from both PHP and manual connections) I think your only other >> option for distinguishing w

Re: [GENERAL] EINTR causes panic (data dir on btrfs)

2016-05-13 Thread Tom Lane
t specified by signal(7). A bit of googling suggests that at least one such case used to exist in btrfs but has been fixed: http://linux-btrfs.vger.kernel.narkive.com/CbodH9VP/patch-btrfs-don-t-return-eintr I wonder what kernel version the OP was using. regards, tom lane

Re: [GENERAL] Ascii Elephant for text based protocols

2016-05-15 Thread Tom Lane
27;d say the problem is at the end: elephant trunks don't curve that direction. Instead of > | v | | v | > |\__/| maybe > | v | | v | > ||__|| or even > | v | | v | > | |/\

[GENERAL] first_value/last_value

2016-05-18 Thread Tom Smith
Hello: Is there a plan for 9.7 to enable using the two aggregate function as non-window function? i.e. enabling getting the first/last row in single sql without using window features. There is actually a C-extension for first()/last(). I am wondering if 9.7 would make them built-in function

Re: [GENERAL] first_value/last_value

2016-05-18 Thread Tom Smith
are the first / last in your set > based on whatever column you order on. > On May 18, 2016 8:47 PM, "Tom Smith" wrote: > >> Hello: >> >> Is there a plan for 9.7 to enable using the two aggregate function >> as non-window function? i.e. enabling

Re: [GENERAL] first_value/last_value

2016-05-18 Thread Tom Smith
It would really save all the troubles for many people if postgresql has a built-in first/last function along with sum/avg. There is already a C extension and a wiki sample and implemented for window function. I am curious why these two functions were not added along their window implementation

Re: [GENERAL] Debugging a backend stuck consuming CPU

2016-05-19 Thread Tom Lane
e: https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_backend regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] PQcancel may hang in the recv call

2016-05-19 Thread Tom Lane
s than it fixes, considering the evident rarity of the problem. The race condition hazard that the recv() is trying to prevent is definitely real: we used to not have that, and we got bug reports, cf http://www.postgresql.org/message-id/flat/20030915070801.gd23...@opencloud.com

Re: [GENERAL] PQcancel may hang in the recv call

2016-05-19 Thread Tom Lane
"David G. Johnston" writes: > On Thu, May 19, 2016 at 3:32 PM, Tom Lane wrote: >> I do not recall anyone ever reporting something similar --- and that code >> has been like that for a long time. > ​I'd take Tom's word over mine :)​ Well, my memory is

Re: [GENERAL] Debugging a backend stuck consuming CPU

2016-05-19 Thread Tom Lane
prepared statements. I'm a bit surprised that you could have gotten up to 12GB worth of prepared statements in an application that sends DISCARD ALL periodically. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes

Re: [GENERAL] postgresql-9.5.3 compilation on Solaris SPARC

2016-05-20 Thread Tom Lane
nix.com/man-page/opensolaris/3c/atomic_cas/ http://docs.oracle.com/cd/E23824_01/html/821-1465/atomic-cas-3c.html I see that the first of those mentions it's for SunOS 5.11 whereas your machine says it's 5.10 ... is it possible the functions were new in 5.11?

Re: [GENERAL] No warnings or errors after same sequential revoke

2016-05-20 Thread Tom Lane
Alex Ignatov writes: > Why we have no warnings or errors about that we have no such grant > after first revoke? Yes, that's intentional. There's no warning about granting twice in a row, either. regards, tom lane -- Sent via pgsql-general mai

Re: [GENERAL] How to know if SPI or some other API triggered an ERROR.

2016-05-21 Thread Tom Lane
tack is being unwound. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] postgresql-9.5.3 compilation on Solaris SPARC

2016-05-21 Thread Tom Lane
Venkata Balaji N writes: > On Sat, May 21, 2016 at 1:04 AM, Tom Lane wrote: >> http://www.unix.com/man-page/opensolaris/3c/atomic_cas/ >> http://docs.oracle.com/cd/E23824_01/html/821-1465/atomic-cas-3c.html >> >> I see that the first of those mentions it's for Su

Re: [GENERAL] Fatal error "stack empty" on ROLLBACK

2016-05-23 Thread Tom Lane
er transaction control command; it should give you back a SPI_ERROR_TRANSACTION result code instead. Maybe you're not checking for failure results and expecting the command to have done something? regards, tom lane -- Sent via pgsql-general mailing list (pgsql-g

Re: [GENERAL] 9.5 regression with unwanted nested loop left join

2016-05-24 Thread Tom Lane
eck? Assuming that the application's already been optimized for pre-9.0 Postgres, turning off enable_material might not be a disastrous long term solution for it, though certainly it'd be better if you can move away from that eventually. regards, tom lane --

Re: [GENERAL] pg_upgrade error regarding hstore operator

2016-05-24 Thread Tom Lane
complaints you'd get during a restore. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] gin index postgres 9.2

2016-05-25 Thread Tom Lane
riginal *definitely* matter, because by default AND binds more tightly than OR. The larger number of rows in the second query are perfectly plausible given the parenthesis-omission. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org)

Re: [GENERAL] Do docs miss information about timing of triggers?

2016-05-26 Thread Tom Lane
fire immediately before a particular row is operated on, while row-level AFTER triggers fire at the end of the statement (but before any statement-level AFTER triggers). ... regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.

Re: [GENERAL] Subquery uses ungrouped column

2016-05-26 Thread Tom Lane
d expending lots of cycles on such cases. I'm not sure offhand whether there would be implications in the planner, or what it would take to fix them if so. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to yo

Re: [GENERAL] 9.6beta, parallel execution and cpu_tuple_cost

2016-05-27 Thread Tom Lane
it's not very surprising that reducing that would tend to bias the planner away from using parallel plans. See parallel_setup_cost and parallel_tuple_cost. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your

Re: [GENERAL] swarm of processes in BIND state?

2016-05-28 Thread Tom Lane
hubert depesz lubaczewski writes: > Does that help us in any way? Not terribly. That confirms that the processes are contending for a spinlock, but we can't tell which one. Can you collect a few stack traces from those processes? regards, tom lane -- Sent v

Re: [GENERAL] PostgreSQL walsender process doesn't exist after "pg_ctl stop -m fast"

2017-11-13 Thread Tom Lane
l reproduce it on current 9.6. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

<    4   5   6   7   8   9   10   11   12   13   >