Re: [HACKERS] Parallel pg_dump for 9.1

2010-04-01 Thread Jeff
tely see is that it uses threads. -- Jeff Trout http://www.stuarthamm.net/ http://www.dellsmartexitin.com/ -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] First feature patch for plperl - draft [PATCH]

2009-12-04 Thread Jeff
On Dec 4, 2009, at 6:18 AM, Tim Bunce wrote: - generalize the Safe setup code to enable more control. Is there any possible way to enable "use strict;" for plperl (trusted) modules? I would love to have that feature. Sure does help cut down on bugs and makes things nicer.

Re: [HACKERS] First feature patch for plperl - draft [PATCH]

2009-12-04 Thread Jeff
e bottom). I think my confusion came up because I'd read the trust/untrusted thing which removes the ability to use use/require. Maybe a blurb or moving that chunk of doc to the trusted/untrusted page might make that tidbit easier to find? -- Jeff Trout http://www.stuarthamm.net/ http://ww

Re: [HACKERS] [WIP] In-place upgrade

2008-11-10 Thread Jeff
ng in we think we'll need to deal with it and not worry about the retroactive case (unless someone has a really clever(tm) idea!) This can't be an original problem to solve, too many other databases do it as well. -- Jeff Trout <[EMAIL PROTECTED]> http://www.stuarthamm

Re: [HACKERS] multiple function execute using (func()).*

2008-12-09 Thread Jeff
ar into it but I figured (func()).* was being expanded by the parser into func().a, func().b and friends. marking it stable didn't help. It can be quite surprising, especially if func() is expensive (as was my case) or has side effects. -- Jeff Trout <[EMAIL PROTECTED]> http://www

Re: [HACKERS] Reducing overhead for repeat de-TOASTing

2008-06-17 Thread Jeff
ue ID that could be used for a lookup key. This puts a bit of a Wouldn't the tid fit this? or table oid + tid? -- Jeff Trout <[EMAIL PROTECTED]> http://www.stuarthamm.net/ http://www.dellsmartexitin.com/ -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make

[HACKERS] initdb failed due to syntax error

2002-09-28 Thread jeff
at the bottom "ERROR: syntax error at line 2658: unexpected token parse error". It seems like this is complaining about the syntax of line 2658 in the postgres.bki file, but I don't see any problem with the syntax here. Does anyone have any ideas about the problem here? Than

Re: [HACKERS] Oracle rant

2003-01-16 Thread Jeff
es - hte fact pg "just works" and the tunability of bigger db's (Oh yeah - and we've actually had informix on the horn about the problem - their solution was "upgrade to 9.4 - it'll be out in march"). Hopefully this last thing will complete and I'll be done with

Re: [HACKERS] Error message style guide

2003-03-17 Thread Jeff
nd have the client ask for the details if it wants it. -- Jeff Trout <[EMAIL PROTECTED]> http://www.jefftrout.com/ Ronald McDonald, with the help of cheese soup, c

Re: [HACKERS] Practical sets of SQLSTATE values?

2003-05-31 Thread Jeff
one have lists of implementation-defined SQLSTATEs for > the big commercial DBs? > On informix SQLSTATE is mostly for getting the oh.. lets call it the "genre" of the error. They use a separate error code which contains the specific error. -- Jeff Trout <[EMAIL PROTECTED]> http://www.j

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-25 Thread Jeff
ke that... (for the record, the fragment types are round robin and expression. You can fragment based on a limited-edition where clause.. ) -- Jeff Trout <[EMAIL PROTECTED]> http://www.jefftrout.com/ http://www.stuarthamm.net/ ---(end of broadcast)

Re: [HACKERS] make check fails: user "postgres" doesn't exist

2003-07-01 Thread Jeff
user > "postgres" does not exist > pg_regress: createdb failed > make: *** [check] 2 > simply add the user. in a unix environment, and specifically Red Hat (though it may apply in other places), you use the 'adduser' program, which has a good man page.

Re: [HACKERS] make check fails: user "postgres" doesn't exist

2003-07-01 Thread Jeff
On Tue, Jul 01, 2003 at 11:09:15PM +0200, Markus Bertheau wrote: > Subject: Re: [HACKERS] make check fails: user "postgres" doesn't exist > From: Markus Bertheau <[EMAIL PROTECTED]> > To: Jeff <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > X-Mailer: Ximian

Re: [HACKERS] Single-file DBs WAS: Need concrete "Why Postgres

2003-08-23 Thread Jeff
file seem more like a device 2. reduce fragmentation 3. guarantee that 2GB "chunk" can never have an out of space issue. On a dedicated pg box there is probably not much fragmentation (and thanks to today's modern filesystems, it isn'ttoo big of a deal in any case).. but it w

Re: [HACKERS] why postgresql is so slow?

2003-09-20 Thread Jeff
you, give us the table schema and run: EXPLAIN ANALYZE SELECT * FROM table1 WHERE id=10 and then run: EXPLAIN ANALYZE SELECT * FROM table1 WHERE id<10 and give us the output. Then run "VACUUM ANALYZE" every once in a while (depending on how fast your data changes)

Re: [HACKERS] Socket communication for contrib

2004-04-05 Thread Jeff
at me strangely and have no idea about it. You get less of it with contrib/ items.. just my $0.02 -- Jeff Trout <[EMAIL PROTECTED]> http://www.jefftrout.com/ http://www.stuarthamm.net/ ---(end of broadcast)--- TIP 3: if posting/reading throug

Re: [HACKERS] PostgreSQL pre-fork speedup

2004-05-06 Thread Jeff
ase run it again, this time with say, 1000 connects. That will give a more true number. And also try running several of these in parellel. I've been using pgpool in production with great success and it can drastically improve connect times. -- Jeff Trout <[EMAIL PROTECTED]> http://ww

Re: [HACKERS] list rewrite committed

2004-05-26 Thread Jeff
e new code enough to see the results? -- Jeff Trout <[EMAIL PROTECTED]> http://www.jefftrout.com/ http://www.stuarthamm.net/ ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [HACKERS] #postgresql report

2004-06-15 Thread Jeff
ly this will go away if and when Debian releases a new stable release. -- Jeff Trout <[EMAIL PROTECTED]> http://www.jefftrout.com/ http://www.stuarthamm.net/ ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [HACKERS] #postgresql report

2004-06-15 Thread Jeff
channel. -- Jeff Trout <[EMAIL PROTECTED]> http://www.jefftrout.com/ http://www.stuarthamm.net/ ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Re: [HACKERS] Support for persistant objects in PostgreSQL?

2004-08-02 Thread Jeff
r own truely unique type where you need to write your inputter, outputter and comparison functions. That can allow you to natively support some proprietary data format you may have. -- Jeff Trout <[EMAIL PROTECTED]> http://www.jefftrout.com/ http://www.stuarthamm.net/

Re: [HACKERS] 2-phase commit

2003-09-29 Thread Jeff
f answer for multi-master, and I'm curious what it is. If they don't, is it reasonable to make a test case that leaves their database inconsistent or hanging? I can (probably) get access to a SQL Server system to run some tests, if someone is interested. regards, jeff

Re: [HACKERS] [PERFORM] Sun performance - Major discovery!

2003-10-08 Thread Jeff
ompiled telling you it will only run on ultrasparc machines) -- Jeff Trout <[EMAIL PROTECTED]> http://www.jefftrout.com/ http://www.stuarthamm.net/ ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html

Re: [HACKERS] PostgreSQL 7.3.4 gets killed by SIG_KILL

2003-12-04 Thread Jeff
of swap (swap never touched). > Do you have any system monitoring scripts that may be killing it as it may look like a "runaway" process? We've had this happen to us before. You tend to forget about things like that. -- Jeff Trout <[EMAIL PROTEC

Re: [HACKERS] Idea about better configuration options for sort

2004-02-02 Thread Jeff
ng to tweak an individual one of those purposes other > > than CREATE INDEX. > I don't know if this would apply here - but foriegn key creation also benefits hugely from jacking up sort_mem and you also don't do too many of those in parellel. I'm guessing it would be qui

Re: [HACKERS] SHMMAX seems entirely broken in OS X 10.4.2

2005-08-29 Thread Jeff -
.shmmin: 1 kern.sysv.shmmni: 32 kern.sysv.shmseg: 16 kern.sysv.shmall: 327680 I've been running PG ith 10k shared bufs for a while. The pain is sometimes /ec/rc gets rewritten :( -- Jeff Trout <[EMAIL PROTECTED]> http://www.jefftrout.com/ http://www.stuarthamm.net/ -

Re: [HACKERS] version upgrade

2004-09-01 Thread Jeff
icate. But plenty of breathing room for normal operation. Various db's support in place upgrades. and I'm thankful I tried Informix's out on a test db first because it simply scribbled over all the data instead of upgrading. Support told me that can happen sometimes. COOL HUH? -

Re: [HACKERS] version upgrade

2004-09-01 Thread Jeff
asiest, safest path for a PG upgrade... in my case the problem is I do have another server with plenty of room, but it doesn't have much CPU or RAM and cannot handle the volume of live traffic the master gets. So I have no choice but to plead my case and ask for some downtime. oh well. -

Re: [HACKERS] ARC patent

2005-01-17 Thread Jeff
. Might as well try to play "good citizen" and talk with them, perhaps they'll give us some sort of indemnity for 8.0 so we can get something perhaps better for 8.1. -- Jeff Trout <[EMAIL PROTECTED]> http://www.jefftrout.com/ http://www.stuarthamm.net/ ---

Re: [HACKERS] Data loss, vacuum, transaction wrap-around

2005-02-21 Thread Jeff
r the xid wraparound... issuing a NOTICE / ERROR in a new version will be good, but backpatching won't be needed. As others have said, the people who really need this are not smart enough to upgrade / watch for patches / RTFM -- Jeff Trout <[EMAIL PROTECTED]> http://www.jefftrout.

Re: [HACKERS] [NOVICE] WHERE clause not used when index is used

2016-03-01 Thread Jeff Janes
s by Simon Riggs It is not a part of the code-base I'm familiar with, so it is unlikely I can find the bug. Cheers, Jeff -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Random inconsistencies in GiST support function declarations

2016-03-01 Thread Jeff Janes
] could not execute query: ERROR: function gtsquery_consistent(internal, internal, integer, oid, internal) does not exist Command was: CREATE OPERATOR CLASS "gist_tp_tsquery_ops" FOR TYPE "pg_catalog"."tsquery" USING "gist" AS STORAGE bigint ,

[HACKERS] pg_basebackup compression TODO item

2016-03-03 Thread Jeff Janes
Since SSL compression seems to be a busted flush, I would like to see pg_basebackup be able to do compression on the server end, not just the client end, in order to spare network bandwidth. Any comments on how hard this would be, or why we don't want it? Cheers, Jeff -- Sent via

Re: [HACKERS] More stable query plans via more predictable column statistics

2016-03-07 Thread Jeff Janes
formance bug fixes which might negatively impact some users. The only times we have done it that I can think of are when there is almost no conceivable way it could have a meaningful negative effect, or if the bug was tied in with security or stability bugs that needed to be fixed anyway and couldn't be separated. Cheers, Jeff -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Freeze avoidance of very large table.

2016-03-08 Thread Jeff Janes
lease > tell me what I'm missing. I think that this loop: while (blkend >= end) Executes exactly twice for each iteration of the outer loop. I'd rather see it written as a loop which explicitly executes twice, rather looking like it might execute a dynamic number of times. I c

Re: [HACKERS] multivariate statistics v11

2016-03-08 Thread Jeff Janes
dw, I'll look into that when I get a chance of no one beats me to it. postgres_fdw.c: In function 'postgresGetForeignJoinPaths': postgres_fdw.c:3623: error: too few arguments to function 'clauselist_selectivity' postgres_fdw.c:3642: error: too few arguments to funct

Re: [HACKERS] multivariate statistics v14

2016-03-09 Thread Jeff Janes
4e48 "regression", username=0x23d4e30 "jjanes") at postgres.c:4021 #21 0x00745a62 in BackendRun (port=0x23f4110) at postmaster.c:4258 #22 0x007451d6 in BackendStartup (port=0x23f4110) at postmaster.c:3932 #23 0x00741ab7 in ServerLoop () at postmaster.c:1690

Re: [HACKERS] pgcrypto: add s2k-count

2016-03-09 Thread Jeff Janes
On Tue, Mar 8, 2016 at 4:09 PM, Alvaro Herrera wrote: > Jeff Janes wrote: >> pgcrypto supports s2k-mode for key-stretching during symmetric >> encryption, and even defaults to s2k-mode=3, which means configurable >> iterations. But it doesn't support s2k-count to actual

Re: [HACKERS] multivariate statistics v14

2016-03-09 Thread Jeff Janes
On Wed, Mar 9, 2016 at 9:21 AM, Tomas Vondra wrote: > Hi, > > On Wed, 2016-03-09 at 08:45 -0800, Jeff Janes wrote: >> On Wed, Mar 9, 2016 at 7:02 AM, Tomas Vondra >> wrote: >> > Hi, >> > >> > thanks for the feedback. Attached is v14 of the pat

Re: [HACKERS] checkpointer continuous flushing - V18

2016-03-12 Thread Jeff Janes
weasel words. I think it's hard to talk about > performance while maintaining the general tone of the documentation. I > don't know what can be done about that. Would the wiki be a good place for such tips? Not as formal as the documentation, and more centralized (and editable) tha

Re: [HACKERS] multivariate statistics v14

2016-03-12 Thread Jeff Janes
On Wed, Mar 9, 2016 at 9:21 AM, Tomas Vondra wrote: > Hi, > > On Wed, 2016-03-09 at 08:45 -0800, Jeff Janes wrote: >> On Wed, Mar 9, 2016 at 7:02 AM, Tomas Vondra >> wrote: >> > Hi, >> > >> > thanks for the feedback. Attached is v14 of the pat

Re: [HACKERS] memory leak in GIN

2016-03-13 Thread Jeff Janes
nts from the field. Maybe later, after this has received more field testing. I won't have a chance to do any further analysis for a while. Cheers, Jeff -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Weighted Stats

2016-03-18 Thread Jeff Janes
eighted_stddev_samp -- 2887.19919651336 The 5th digit seems too early to be seeing round-off error. Cheers, Jeff -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Fuzzy substring searching with the pg_trgm extension

2016-03-18 Thread Jeff Janes
On Mon, Mar 14, 2016 at 9:27 AM, Artur Zakirov wrote: > On 14.03.2016 18:48, David Steele wrote: >> >> Hi Jeff, >> >> On 2/25/16 5:00 PM, Jeff Janes wrote: >> >>> But, It doesn't sound like I am going to win that debate. Given that, >>>

Re: [HACKERS] Idle In Transaction Session Timeout, revived

2016-03-18 Thread Jeff Janes
On Wed, Mar 16, 2016 at 8:32 AM, Robert Haas wrote: > > Committed with slight changes to the docs, and I added a flag variable > instead of relying on IdleInTransactionSessionTimeout not changing at > an inopportune time. Thanks for committing, this should be a useful feature. I get a pretty str

[HACKERS] logger process infinite loop

2016-03-18 Thread Jeff Janes
(argc=argc@entry=1, argv=argv@entry=0x26d5a10) at postmaster.c:1208 opt = status = userDoption = listen_addr_saved = i = output_config_variable = __func__ = "PostmasterMain" #5 0x0047cd1e in main (argc=1, argv=0x26d5a1

Re: [HACKERS] snapshot too old, configured by time

2016-03-18 Thread Jeff Janes
holder receives an error once it tries to access the table again, and then the bloat stops increasing. But shouldn't the bloat have stopped increasing as soon as the snapshot became doomed, which would be after a minute or so? Cheers, Jeff -- Sent via pgsql-hackers mailing list (pgsql-hac

Re: [HACKERS] logger process infinite loop

2016-03-18 Thread Jeff Janes
On Fri, Mar 18, 2016 at 10:39 PM, Andres Freund wrote: > Hi, > > On 2016-03-18 21:59:01 -0700, Jeff Janes wrote: >> While testing some patches on my laptop, I noticed my knee getting >> uncomfortably warm. It turns out I has accumulating deranged logging >> processes,

Re: [HACKERS] Weighted Stats

2016-03-19 Thread Jeff Janes
On Fri, Mar 18, 2016 at 11:34 PM, David Fetter wrote: > On Fri, Mar 18, 2016 at 06:12:12PM -0700, Jeff Janes wrote: >> Also, I think it might not give the correct answer even without >> negative weights: >> >> create table foo as select floor(random()*1)::int

Re: [HACKERS] pgbench stats per script & other stuff

2016-03-19 Thread Jeff Janes
On Sat, Mar 19, 2016 at 11:34 AM, Alvaro Herrera wrote: > Jeff Janes wrote: >> On Sat, Mar 19, 2016 at 8:41 AM, Alvaro Herrera >> wrote: >> > I pushed your 25, with some additional minor tweaks. I hope I didn't >> > break anything; please test. >> >

Re: [HACKERS] pgbench stats per script & other stuff

2016-03-19 Thread Jeff Janes
f scripts at all, rather than adding it in a way where it can never be selected. But then that would complicate the parsing of the per-script stats report, when one of the scripts was no longer reported. I like this way better. Would this be a welcome change? Cheers, Jeff pgbench_zero_wei

Re: [HACKERS] multivariate statistics v14

2016-03-21 Thread Jeff Janes
t=0.43..1569.70 rows=46812 width=8) (actual rows=6 loops=1) Index Cond: ((y >= 478) AND (y <= 480)) Heap Fetches: 0 Planning time: 0.175 ms Execution time: 20.264 ms (I use the "timing off" option, because without it the second plan spends most of its ti

[HACKERS] trivial typo in vacuum progress doc

2016-03-21 Thread Jeff Janes
"skipped blocks are included this total" The word "in" is missing Cheers, Jeff diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml new file mode 100644 index cb22afb..105d541 *** a/doc/src/sgml/monitoring.sgml --- b/doc/src/sgml/monitoring.sgml **

Re: [HACKERS] Draft release notes for next week's releases

2016-03-26 Thread Jeff Janes
ate, but: + + + Correctly handle wraparound cases in the pg_subtrans + startup logic for hot standby (Jeff Janes) + + This applies to all recovery scenarios, whether they are hot standby or just plain-old automatic crash recovery. (However, it does only matter when prepare

Re: [HACKERS]WIP: Covering + unique indexes.

2016-01-12 Thread Jeff Janes
On Tue, Jan 12, 2016 at 8:59 AM, Anastasia Lubennikova wrote: > 08.01.2016 00:12, David Rowley: > > On 7 January 2016 at 06:36, Jeff Janes wrote: >> > But now I see the reason to create non-unique index with included columns - > lack of suitable opclass on column "b&

Re: [HACKERS] Fuzzy substring searching with the pg_trgm extension

2016-01-13 Thread Jeff Janes
On Sat, Dec 26, 2015 at 9:12 PM, Jeff Janes wrote: > On Fri, Dec 18, 2015 at 11:43 AM, Artur Zakirov > wrote: >> Hello. >> >> PostgreSQL has a contrib module named pg_trgm. It is used to the fuzzy text >> search. It provides some functions and operators for determ

Re: [HACKERS] Fuzzy substring searching with the pg_trgm extension

2016-01-15 Thread Jeff Janes
s a series of ties). Finally, should there be operators for returning the distance, analogous to the <-> operator? It is awkward to use an operator for the boolean and a function to get the distance. Especially when you use %> and so need swap the order of arguments between the o

Re: [HACKERS] GIN pending list clean up exposure to SQL

2016-01-15 Thread Jeff Janes
On Sun, Jan 10, 2016 at 4:24 AM, Julien Rouhaud wrote: > On 29/12/2015 00:30, Jeff Janes wrote: >> On Wed, Nov 25, 2015 at 9:29 AM, Jeff Janes wrote: >>> >>> I'll prepare a patch for core for the January commitfest, and see if >>> it flies. If not, ther

Re: [HACKERS] Truncating/vacuuming relations on full tablespaces

2016-01-17 Thread Jeff Janes
he pending list cleanup step when it finds someone else already cleaning it. For correctness it has to either clean it itself, or wait until the other process is done (or at least, done up to the point where the tail was at the time the vacuum started). Cheers, Jeff -- Sent via pgsql-hackers mail

Re: [HACKERS] Proposal: speeding up GIN build with parallel workers

2016-01-17 Thread Jeff Janes
is current proposal, and no one has volunteered to do the work on converting it to tuple sort instead. Cheers, Jeff -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS]WIP: Covering + unique indexes.

2016-01-21 Thread Jeff Janes
l merge conflicts between your patch and this commit: commit 65c5fcd353a859da9e61bfb2b92a99f12937de3b Author: Tom Lane Date: Sun Jan 17 19:36:59 2016 -0500 Restructure index access method API to hide most of it at the C level. Can you rebase past that commit? Thanks, Jeff -- Sent via pgsq

Re: [HACKERS] Combining Aggregates

2016-01-22 Thread Jeff Janes
ignal 11, Segmentation fault. #0 0x00416b0b in dumpAgg (fout=0x1e551e0, agginfo=0x1e65ec0) at pg_dump.c:12670 12670if (strcmp(aggcombinefn, "-") != 0) (gdb) bt #0 0x00416b0b in dumpAgg (fout=0x1e551e0, agginfo=0x1e65ec0) at pg_dump.c:12670 #1 0x0041df7a in main (argc

Re: [HACKERS] Combining Aggregates

2016-01-23 Thread Jeff Janes
es for previous versions. > > The attached fixes the problem. Yep, that fixes it. Thanks, Jeff -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS]WIP: Covering + unique indexes.

2016-01-24 Thread Jeff Janes
default sorting behavior LINE 1: alter table foobar add constraint foobar_pkey primary key us... ^ DETAIL: Cannot create a primary key or unique constraint using such an index. Cheers, Jeff -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org

Re: [HACKERS] GIN pending list clean up exposure to SQL

2016-01-24 Thread Jeff Janes
On Wed, Jan 20, 2016 at 6:17 AM, Fujii Masao wrote: > On Sat, Jan 16, 2016 at 7:42 AM, Julien Rouhaud > wrote: >> On 15/01/2016 22:59, Jeff Janes wrote: >>> On Sun, Jan 10, 2016 at 4:24 AM, Julien Rouhaud >>> wrote: >> >> All looks fine to me, I

[HACKERS] brin_summarize_new_values error checking

2016-01-24 Thread Jeff Janes
itical, as they just result in getting less specific error messages that one might hope for, rather than something worse like a panic. But still, we might want to address them. Cheers, Jeff [1] http://www.postgresql.org/message-id/CAHGQGwH=m1baejpqdpjjcneqwg8xa+p8sb+zsvhvwh6gl2j...@mail.gmail.com

Re: [HACKERS] GIN pending list clean up exposure to SQL

2016-02-07 Thread Jeff Janes
his is a corner case that probably does not need to be in the docs, but I wanted to clarify it here in case you disagree: If the index ever had fastupdate turned on, when it is turned off the index will keep whatever pending_list it had until something cleans it up one last time. Thanks for the review

[HACKERS] Bug in StartupSUBTRANS

2016-02-09 Thread Jeff Janes
eaving an active XID hanging around for a few checkpoint cycles, which is something I've never intentionally tested before. Cheers, Jeff StartupSUB.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: h

[HACKERS] pgcrypto: add s2k-count

2016-02-09 Thread Jeff Janes
ve not updated the extension version. So I don't know if it makes sense to bump the version if people inherently get the feature anyway. Cheers, Jeff diff --git a/contrib/pgcrypto/expected/pgp-encrypt.out b/contrib/pgcrypto/expected/pgp-encrypt.out new file mode 100644 index b35de79..2bf

Re: [HACKERS] postgres_fdw join pushdown (was Re: Custom/Foreign-Join-APIs)

2016-02-09 Thread Jeff Janes
arning which I think is coming from this commit. postgres_fdw.c: In function 'fetch_more_data': postgres_fdw.c:2526:17: warning: unused variable 'fsplan' [-Wunused-variable] ForeignScan *fsplan = (ForeignScan *) node->ss.ps.plan; Thanks, Jeff -- Sent via pgsql-hackers

[HACKERS] Seg fault in pgbench

2016-02-12 Thread Jeff Janes
02:54:22 2016 +0100 pgbench: improve multi-script support I wasn't able to figure out which email thread corresponds to this commit. Thanks, Jeff -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mai

Re: [HACKERS] Seg fault in pgbench

2016-02-12 Thread Jeff Janes
On Fri, Feb 12, 2016 at 12:22 PM, Alvaro Herrera wrote: > Jeff Janes wrote: >> If I give pgbench an empty file, I get a segfault. >> >> $ touch empty.sql >> $ src/bin/pgbench/pgbench -T 60 -f empty.sql >> starting vacuum...end. >> Segmentation fault (co

Re: [HACKERS] Bug in StartupSUBTRANS

2016-02-13 Thread Jeff Janes
On Tue, Feb 9, 2016 at 10:33 AM, Simon Riggs wrote: > On 9 February 2016 at 18:42, Jeff Janes wrote: >> >> While testing the crash resilience of the recent 2-part-commit >> improvements, I've run into a problem where sometimes after a crash >> the recovery

Re: [HACKERS] Remove or weaken hints about "effective resolution of sleep delays is 10 ms"?

2016-02-16 Thread Jeff Janes
On Tue, Feb 16, 2016 at 12:06 AM, Robert Haas wrote: > On Wed, Feb 10, 2016 at 5:15 PM, Andres Freund wrote: >> Hi, >> >> Several places in our docs have blurbs like >>> Note that on many systems, the effective resolution of sleep delays is >>> 10 milliseconds; setting wal_writer_delay to a value

[HACKERS] Deferrable check constraints

2016-02-20 Thread Jeff Janes
is topic that I'm not aware of? (The mail archive search interface is not so helpful with common words like "check".) Cheers, Jeff -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS]WIP: Covering + unique indexes.

2016-02-25 Thread Jeff Janes
or could it be added at the same time as the main patch? I think this is something it would be pretty frustrating for the user to be unable to do right from the start. Cheers, Jeff -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] GIN data corruption bug(s) in 9.6devel

2016-02-25 Thread Jeff Janes
ttle. Since the freespace recycling only takes place once the list is completely cleaned, allowing some processes to add to the end while one poor process is trying to clean can lead to less effective recycling. That is my theory, anyway. Cheers, Jeff -- Sent via pgsql-hacke

Re: [HACKERS] Fuzzy substring searching with the pg_trgm extension

2016-02-25 Thread Jeff Janes
there are invisible un-removable spaces on the substring side. But, It doesn't sound like I am going to win that debate. Given that, I don't think we need a different name for the function. I'm fine with explaining the word-boundary subtlety in the documentation, and keeping the function name itself simple. Cheers, Jeff -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] distinct estimate of a hard-coded VALUES list

2016-08-18 Thread Jeff Janes
he planner that could be fixed in a future version, or is a temp table the only real solution here? Cheers, Jeff

Re: [HACKERS] sslmode=require fallback

2016-08-19 Thread Jeff Janes
there is the requirepeer connection option for that. > > Oh, nice, I had not seen that. > Hi Bruce, There is typo in the doc patch you just committed "On way to prevent spoofing of" s/On/One/ Cheers, Jeff

Re: [HACKERS] distinct estimate of a hard-coded VALUES list

2016-08-20 Thread Jeff Janes
On Thu, Aug 18, 2016 at 2:25 PM, Tom Lane wrote: > Jeff Janes writes: > > So even though it knows that 6952 values have been shoved in the bottom, > it > > thinks only 200 are going to come out of the aggregation. This seems > like > > a really lousy estimate. In mo

Re: [HACKERS] Write Ahead Logging for Hash Indexes

2016-08-23 Thread Jeff Janes
0x003838ce1503 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:82 #20 0x006b0ec0 in ServerLoop (argc=, argv=) at postmaster.c:1657 #21 PostmasterMain (argc=, argv=) at postmaster.c:1301 #22 0x00632e88 in main (argc=4, argv=0x11f4d50) at main.c:228 Cheers, Jeff

[HACKERS] recent compiler warnings

2016-08-23 Thread Jeff Janes
_pg_index rd_index; ^ commit ed0097e4f9e6b1227935e01fa67f12a238b66064 Author: Tom Lane Date: Sat Aug 13 18:31:14 2016 -0400 Add SQL-accessible functions for inspecting index AM properties. I don't know if this compiler is a too clever by half, or not clever enough. Cheers, Jeff --

Re: [HACKERS] Write Ahead Logging for Hash Indexes

2016-08-24 Thread Jeff Janes
On Tue, Aug 23, 2016 at 10:05 PM, Amit Kapila wrote: > On Wed, Aug 24, 2016 at 2:37 AM, Jeff Janes wrote: > > > > > After an intentionally created crash, I get an Assert triggering: > > > > TRAP: FailedAssertion("!(((freep)[(bitmapbit)/32] & > >

Re: [HACKERS] distinct estimate of a hard-coded VALUES list

2016-08-28 Thread Jeff Janes
On Mon, Aug 22, 2016 at 10:19 AM, Robert Haas wrote: > On Sat, Aug 20, 2016 at 4:58 PM, Tom Lane wrote: > > Jeff Janes writes: > >> On Thu, Aug 18, 2016 at 2:25 PM, Tom Lane wrote: > >>> It does know it, what it doesn't know is how many duplicates there are

Re: [HACKERS] Notice lock waits

2016-08-31 Thread Jeff Janes
On Tue, Aug 9, 2016 at 5:17 PM, Jim Nasby wrote: > On 8/5/16 12:00 PM, Jeff Janes wrote: > >> So I created a new guc, notice_lock_waits, which acts like >> log_lock_waits but sends the message as NOTICE so it will show up on >> interactive connections like psql. >&g

Re: [HACKERS] restoration after crash slowness, any way to improve?

2016-09-01 Thread Jeff Janes
store the list of FPI pages. For the second one, you would not want it to run so far ahead that it the pages it read in would get pushed out again before the lagging process got to them. Controlling how far ahead that would be seems like it would be hard. Cheers, Jeff

Re: [HACKERS] Hash Indexes

2016-09-07 Thread Jeff Janes
ckets with at least one overflow page, and split when there are too many of those. I bring it up now because it would be a shame to ignore it until 10.0 is out the door, and then need to break things in 11.0. Cheers, Jeff

Re: [HACKERS] Write Ahead Logging for Hash Indexes

2016-09-08 Thread Jeff Janes
ble-casserts, to I will have to redo it to make sure the assertion failures have been fixed. In my original testing I did very rarely get a deadlock (or some kind of hang), and I haven't seen that again so far. It was probably the same source as the one Mark observed, and so the same fix. Cheers, Jeff

Re: [HACKERS] High-CPU consumption on information_schema (only) query

2016-09-08 Thread Jeff Janes
iodically interrupt the process (ctrl c) and take a back trace (bt), then restart it (c) and repeat. If all the stack traces look similar, you will know where the time is going. Cheers, Jeff

Re: [HACKERS] feature request: explain "with details" option

2016-09-10 Thread Jeff Janes
any of multiples of each of the *_cost factors were summed to arrive at the total cost. that would help me a lot in interpreting plans, and might also help someone like Depesz a lot in improving his expert-system. It would be far easier than what you are proposing, but would be still be a lot of work. It would probably also be challenged because the accounting overhead, while small, would be incurred on every single planner run. Cheers, Jeff

Re: [HACKERS] Write Ahead Logging for Hash Indexes

2016-09-11 Thread Jeff Janes
On Thu, Sep 8, 2016 at 12:09 PM, Jeff Janes wrote: > I plan to do testing using my own testing harness after changing it to > insert a lot of dummy tuples (ones with negative values in the pseudo-pk > column, which are never queried by the core part of the harness) and > deleting th

Re: [HACKERS] Write Ahead Logging for Hash Indexes

2016-09-11 Thread Jeff Janes
On Sun, Sep 11, 2016 at 7:40 PM, Amit Kapila wrote: > On Mon, Sep 12, 2016 at 7:00 AM, Jeff Janes wrote: > > On Thu, Sep 8, 2016 at 12:09 PM, Jeff Janes > wrote: > > > >> > >> I plan to do testing using my own testing harness after changing it to > >

Re: [HACKERS] Hash Indexes

2016-09-13 Thread Jeff Janes
On Wed, Sep 7, 2016 at 9:32 PM, Amit Kapila wrote: > On Wed, Sep 7, 2016 at 11:49 PM, Jeff Janes wrote: > > On Thu, Sep 1, 2016 at 8:55 PM, Amit Kapila > wrote: > >> > >> > >> I have fixed all other issues you have raised. Updated patch is > &g

Re: [HACKERS] pageinspect: Hash index support

2016-09-14 Thread Jeff Janes
(flags) */ + if (opaque->hasho_flag & LH_UNUSED_PAGE) + stat->type = 'u'; This can never be true, because LH_UNUSED_PAGE is zero. You should make this be the fall-through case, and have LH_META_PAGE be explicitly tested for. Cheers, Jeff

Re: [HACKERS] Hash Indexes

2016-09-14 Thread Jeff Janes
On Tue, Sep 13, 2016 at 9:31 AM, Jeff Janes wrote: > === > > +Vacuum acquires cleanup lock on bucket to remove the dead tuples and or > tuples > +that are moved due to split. The need for cleanup lock to remove dead > tuples > +is to ensure that scans' returns c

Re: [HACKERS] Hash Indexes

2016-09-14 Thread Jeff Janes
vement in read only) I've run this was 128MB shared_buffers and scale factor 40. Not everything fits in shared_buffers, but quite easily fits in RAM, and there is no meaningful IO caused by the benchmark. Cheers, Jeff

Re: [HACKERS] Hash Indexes

2016-09-16 Thread Jeff Janes
unhappy to try to compare WAL logged concurrent hash indexes to btree-over-hash indexes, if I had to wait a few years for the latter to appear, and then dig up the patches for the former and clean up the bitrot, and juggle multiple patch sets, in order to have something to compare. Cheers, Jeff

Re: [HACKERS] README of hash index

2016-09-16 Thread Jeff Janes
ly care about the algorithm for inserting in isolation, I agree reading the code might be better. But the use of white space isn't always consistent, and I don't know what a double hyphen means. I think it could use improvement, rather than abolishing. Cheers, Jeff

Re: [HACKERS] Hash Indexes

2016-09-19 Thread Jeff Janes
ve doubt and > they want to test some specific cases, then sure we can do more > performance benchmarking. > I think that a precursor to WAL is enough to justify it even if the verified performance improvements were not impressive. But they are pretty impressive, at least for some situations. Cheers, Jeff

  1   2   3   4   5   6   7   8   9   10   >