Re: [PATCHES] [HACKERS] 'Waiting on lock'

2007-06-20 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > "Tom Lane" <[EMAIL PROTECTED]> writes: >> How you figure that? > Well I'm not clear exactly what's going on with the semaphores here. If it's > possible for to be printing the messages only as a resu

Re: [PATCHES] [HACKERS] 'Waiting on lock'

2007-06-20 Thread Tom Lane
gather this info, random users shouldn't be able to turn it off. regards, tom lane ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [PATCHES] [EMAIL PROTECTED]: Re: [HACKERS] EXPLAIN omits schema?]

2007-06-20 Thread Tom Lane
ly not producing the ideal XML structure. regards, tom lane ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [PATCHES] [HACKERS] 'Waiting on lock'

2007-06-19 Thread Tom Lane
ter > the deadlock detection. It's elog(LOG), which you can get on the client if you want. The chance of making it NOTICE is epsilon... regards, tom lane ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [PATCHES] [HACKERS] 'Waiting on lock'

2007-06-19 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > * Tom Lane ([EMAIL PROTECTED]) wrote: >> In fact, I am scandalized to see that someone has inserted a boatload >> of elog calls into CheckDeadLock since 8.2 --- that seems entirely >> unsafe. [ checks revision history... ]

Re: [PATCHES] [HACKERS] 'Waiting on lock'

2007-06-19 Thread Tom Lane
s there a reason not to do that? I suppose it would eat a few more cycles ... regards, tom lane ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if you

Re: [PATCHES] [HACKERS] 'Waiting on lock'

2007-06-19 Thread Tom Lane
ts if it didn't get the condition it wants. Before, I think we did that for every use of the semaphore except this one (which is an outgrowth of the fact that originally this was indeed the only use of the sema, and the others got shoehorned in over time). I'll check it ov

Re: [PATCHES] [HACKERS] 'Waiting on lock'

2007-06-19 Thread Tom Lane
y --- if we eliminated that whole loop and just always queued at the end of the list, we'd still get the lock, but not till after the deadlock check delay had elapsed. regards, tom lane ---(end of broadcast)--

Re: [PATCHES] WIP: rewrite numeric division

2007-06-19 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > "Tom Lane" <[EMAIL PROTECTED]> writes: >> Yeah, my proposed patch is schoolbook division. I don't think I'd trust >> Newton's method to give anything but a close approximation, which is >> wha

Re: [PATCHES] WIP: rewrite numeric division

2007-06-18 Thread Tom Lane
Newton's method to give anything but a close approximation, which is what we have in HEAD already. regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PATCHES] Maintaining cluster order on insert

2007-06-17 Thread Tom Lane
the heap. I suggest making RelationGetIndexList() cache the OID of the clustered index (if any) in relcache entries, and add RelationGetClusterIndex much like RelationGetOidIndex, and then heap_insert can use that. regards, tom lane ---(end of b

[PATCHES] WIP: rewrite numeric division

2007-06-17 Thread Tom Lane
ll this is a bit annoying. Anyone see a way to speed it up, or have another approach? regards, tom lane binZ6bTIGGXbC.bin Description: numeric-div.patch.gz ---(end of broadcast)--- TIP 3: Have you checked

Re: [PATCHES] Load Distributed Checkpoints, revised patch

2007-06-16 Thread Tom Lane
.conf file without any thought when moving to a new release. regards, tom lane ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [PATCHES] Maintaining cluster order on insert

2007-06-16 Thread Tom Lane
since it was last filled up. regards, tom lane ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly

Re: [PATCHES] WIP: script binaries renaming

2007-06-15 Thread Tom Lane
Zdenek Kotala <[EMAIL PROTECTED]> writes: > I think this patch has no (or small) impact on functionality and it > should be committed to 8.3 This missed the feature freeze deadline by well over two months. It is not a candidate for 8.3. regar

Re: [PATCHES] pipe chunks protocol

2007-06-13 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> [confused...] How do you envision proceeding exactly? > Never mind, if you're happy adapting and applying this right away to > back branches then I'm happy too. I just didn't want to have to wai

Re: [PATCHES] pipe chunks protocol

2007-06-13 Thread Tom Lane
s, but I'd be happy to wait for the > back branches in this case. [confused...] How do you envision proceeding exactly? regards, tom lane ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [PATCHES] pipe chunks protocol

2007-06-13 Thread Tom Lane
ugh test. Maybe we could get Ed L. or one of the other complainants to try it. (The patch seems to need some adjustment to apply against 8.2, though.) regards, tom lane binVOvljxL6WO.bin Description: logpipe-2.patch.gz ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [PATCHES] [HACKERS] COPYable logs status

2007-06-12 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > Can I not use a StringInfo in the syslogger? Should work, elog.c expects it will --- I'd wonder about premature pfree or something like that. Are you testing with --enable-cassert? reg

Re: [PATCHES] Two aesthetic bugs in the 1-byte packed varlena code

2007-06-12 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > "Tom Lane" <[EMAIL PROTECTED]> writes: >> After looking closer, I think there are worse problems here: the code is >> still using VARSIZE/VARDATA etc, which it should not be because the >> field could easily be

Re: [PATCHES] Two aesthetic bugs in the 1-byte packed varlena code

2007-06-12 Thread Tom Lane
ns, seeing that this table's layout seems unlikely to change. But it seems like we might want to trouble with a null test. Thoughts? regards, tom lane ---(end of broadcast)--- TIP 7: You can help support the

Re: [PATCHES] Two aesthetic bugs in the 1-byte packed varlena code

2007-06-12 Thread Tom Lane
omments are about. I'm not especially worried about mechanizing it since in practice code that tries to access those fields will crash pretty obviously and consistently, except for the first such field which is safe anyway. regards, tom lane

Re: [PATCHES] Two aesthetic bugs in the 1-byte packed varlena code

2007-06-12 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > Why do we even have those fields in the structs if they're unsafe to use? 1. genbki.sh 2. As you note, they're not always unsafe to use. regards, tom lane -

Re: [PATCHES] WIP: updatable cursors in plpgsql

2007-06-11 Thread Tom Lane
r name until runtime, it seems that this would work if we allowed a parameter symbol there. Offhand that doesn't look hard. regards, tom lane ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore yo

Re: [PATCHES] WIP: updatable cursors in plpgsql

2007-06-11 Thread Tom Lane
"Pavel Stehule" <[EMAIL PROTECTED]> writes: > 2007/6/11, Tom Lane <[EMAIL PROTECTED]>: >> Why do we need this? >> > For stored procedures. No, the question is what is the patch trying to accomplish, because as far as I can see it's wrong. It seems t

Re: [PATCHES] WIP: updatable cursors in plpgsql

2007-06-11 Thread Tom Lane
"Pavel Stehule" <[EMAIL PROTECTED]> writes: > this small patch allows using updatable cursors in plpgsql. Why do we need this? regards, tom lane ---(end of broadcast)--- TIP 7: You can help support the Po

Re: [PATCHES] Synchronized scans

2007-06-10 Thread Tom Lane
es. The main stumbling block is cleaning out index entries for the known-dead heap tuple. The current VACUUM design amortizes that cost across as many dead heap tuples as it can manage; doing it retail seems inevitably to be a lot more expensive. regards, tom lane --

Re: [PATCHES] Synchronized scans

2007-06-09 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > "Tom Lane" <[EMAIL PROTECTED]> writes: >> The vacuum-cost-limit issue may be sufficient reason to kill this idea; >> not sure. > We already have a much higher cost for blocks that cause i/o than > blocks w

Re: [PATCHES] Synchronized scans

2007-06-09 Thread Tom Lane
acuum pass at the instant where the scan would wrap around, so that the list could be cleared before putting any lower-numbered blocks into it. regards, tom lane ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [PATCHES] Synchronized scans

2007-06-08 Thread Tom Lane
Jeff Davis <[EMAIL PROTECTED]> writes: > On Fri, 2007-06-08 at 12:22 -0400, Tom Lane wrote: >> Now that I'm awake, it is reachable code, per this comment: >> >> * Note: when we fall off the end of the scan in either direction, we >> * reset rs_inited. This

Re: [PATCHES] Synchronized scans

2007-06-08 Thread Tom Lane
it. Any strong feelings one way or the other? AFAIK the only case where it'd happen is if someone reads forwards in a large-seqscan cursor for awhile and then reads backwards. You could argue that doing that is a good reason to drop them out of the syncscan pack ...

Re: [PATCHES] Synchronized scans

2007-06-08 Thread Tom Lane
he correct fix would be to make ANALYZE sort the rels by OID, anyhow, not to dumb down the scan. regards, tom lane ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [PATCHES] Synchronized scans

2007-06-08 Thread Tom Lane
Heikki Linnakangas <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> Jeff Davis <[EMAIL PROTECTED]> writes: >>> Just to be sure: a backwards-started scan is currently unreachable code, >>> correct? >> >> [ yawn... ] I think so, but I wouldn&#

Re: [PATCHES] Synchronized scans

2007-06-08 Thread Tom Lane
Heikki Linnakangas <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> It occurs to me that there's an actual bug here for catalog access. >> The code assumes that it can measure rs_nblocks only once and not worry >> about tuples added beyond that endpoint. But th

Re: [PATCHES] Synchronized scans

2007-06-08 Thread Tom Lane
nting a concurrent update). But we ought to fix it while we're touching the code now. That will take re-measuring rs_nblocks each time we consider stopping, and I think we definitely will NOT want the syncscan code getting involved. I'll take care of incorporating this point into yo

Re: [HACKERS] [PATCHES] [BUGS] BUG #3326: Invalid lower bound of autovacuum_cost_limit

2007-06-08 Thread Tom Lane
this is done would be a good idea, but I don't think we need to say anything in the SGML docs. regards, tom lane ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate

Re: [PATCHES] Synchronized scans

2007-06-07 Thread Tom Lane
regards, tom lane ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [PATCHES] Synchronized scans

2007-06-07 Thread Tom Lane
ix the syncscan for everyone else. I'm inclined to disable use of syncscan.c altogether when the scan is started backwards. It also seems prudent to suppress ss_report_location calls when stepping backward in a generally-forwards scan. Thoughts? regards, tom lane -

Re: [PATCHES] [BUGS] BUG #3326: Invalid lower bound of autovacuum_cost_limit

2007-06-07 Thread Tom Lane
he valid range for parameter > "autovacuum_vacuum_cost_limit" (-1 .. 1000) > Note how it still says the range is -1 .. 1000. Can we redefine things to make zero be the "disabled" value, thus keeping the range of valid values contiguous? regards,

Re: [PATCHES] WIP csv logs

2007-06-06 Thread Tom Lane
arily have PGPROCs. 2. If somebody crashes while holding the lock, the entire system including the postmaster soon freezes up. 3. Having the postmaster take LWLocks is verboten anyway, mainly because of problem #2. regards, tom lane --

Re: [PATCHES] Synchronized scans

2007-06-05 Thread Tom Lane
ot as severe as I thought then. regards, tom lane ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [PATCHES] Synchronized scans

2007-06-04 Thread Tom Lane
point, which fixes both my reproducibility concern and Heikki's original point about being able to re-use cached data. You'd only get into the irreproducible behavior if the LIMIT was larger than the amount of data scanned between hint updates. regards, tom lane ---

Re: [PATCHES] Synchronized scans

2007-06-04 Thread Tom Lane
st blocks starting here", not "I have scanned blocks ending here", which seems like the interpretation that's being used at the moment. What that would mean is that successive "LIMIT 1000" calls would in fact all start at the same place, barring int

Re: [PATCHES] Synchronized scans

2007-06-04 Thread Tom Lane
o "SELECT * ... LIMIT 1" just to remind themselves of column names or whatever. Do we really want the thing to be so nannyish? I was envisioning simply a stronger warning in the SELECT reference page ... regards, tom lane ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [PATCHES] Synchronized scans

2007-06-04 Thread Tom Lane
ngs than we have now about using LIMIT without ORDER BY. regards, tom lane ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining colum

Re: [PATCHES] Synchronized scans

2007-06-04 Thread Tom Lane
f the moon? I've got a serious problem with that. You might look back to 1997 when GEQO very nearly got tossed out entirely because it destroyed reproducibility of query results. regards, tom lane ---(end of broadcast)--- TIP 6: explain analyze is your friend

[PATCHES] WIP patch for text coercions

2007-06-03 Thread Tom Lane
resql.org/pgsql-hackers/2007-02/msg01729.php We had pretty much agreed that we could handle that by restricting the conditions under which we'd consider coercing an UNKNOWN literal to ANYARRAY, but it wasn't quite clear *what* restriction to use. Comments? regards, tom

Re: [PATCHES] CREATE TABLE LIKE INCLUDING INDEXES support

2007-06-03 Thread Tom Lane
NikhilS <[EMAIL PROTECTED]> writes: > On 6/3/07, Tom Lane <[EMAIL PROTECTED]> wrote: >> This still seems to fundamentally misunderstand the difference between >> an index and a constraint. IMHO it should not be examining pg_index >> (or specifically, the index Re

Re: [PATCHES] GUC temp_tablespaces (updated)

2007-06-03 Thread Tom Lane
e last crash-restart, but that time is not tracked anywhere AFAIR. I didn't see enough value in the hint to worry about fixing it; I just took it out. regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PATCHES] CREATE TABLE LIKE INCLUDING INDEXES support

2007-06-02 Thread Tom Lane
s) at all. regards, tom lane ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [PATCHES] Seq scans status update

2007-06-02 Thread Tom Lane
don't remember that. regards, tom lane ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [PATCHES] Bug in date.c

2007-06-02 Thread Tom Lane
ore 8.3 is out (in favor of a generic text cast capability), but we need a back-patchable fix for the released branches. So the "minimal" patch looks the best to me --- least risk of patch trouble. regards, tom lane ---(end of broadca

Re: [PATCHES] [HACKERS] like/ilike improvements

2007-06-01 Thread Tom Lane
propriate mblen or other encoding-dependent function, and then call directly to the right place in the inner loops instead of having to go through the intermediate vectoring function every time. regards, tom lane ---(end of broadcast)-

Re: [PATCHES] [HACKERS] like/ilike improvements

2007-06-01 Thread Tom Lane
nc on character boundaries. And we know that no backend-legal encoding allows ASCII characters such as '%' to appear as non-first bytes of characters, so we won't mistakenly detect a new wildcard." regards, tom lane --

Re: [PATCHES] [pgsql-patches] Ctid chain following enhancement

2007-06-01 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> I think it should be dropped entirely. The argument against was that >> it complicated the code in a non-performance-critical path, and that >> argument isn't going to be different next time. > I

Re: [PATCHES] [pgsql-patches] Ctid chain following enhancement

2007-06-01 Thread Tom Lane
rent next time. regards, tom lane ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [PATCHES] Seq scans status update

2007-05-30 Thread Tom Lane
Jeff Davis <[EMAIL PROTECTED]> writes: > On Wed, 2007-05-30 at 15:56 -0400, Tom Lane wrote: >> In the sync-scan case the idea seems pretty bogus anyway, because the >> actual working set will be N backends' rings not just one. > I don't follow. Ideally, in the s

Re: [PATCHES] Seq scans status update

2007-05-30 Thread Tom Lane
ng set will be N backends' rings not just one. regards, tom lane ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [PATCHES] Seq scans status update

2007-05-30 Thread Tom Lane
Heikki Linnakangas <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> One other question: I see the patch sets the threshold for switching >> from normal to ring-buffer heapscans at table size = NBuffers. Why >> so high? I'd have expected maybe at most NBuffers/4

Re: [PATCHES] WIP: 2nd-generation buffer ring patch

2007-05-30 Thread Tom Lane
Heikki Linnakangas <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> The COPY IN part of the patch is not there, pending resolution of >> whether we think it adds enough value to be worth uglifying >> heap_insert's API for. > I ran a series of tests, and it l

Re: [PATCHES] WIP: 2nd-generation buffer ring patch

2007-05-29 Thread Tom Lane
jections I'll adjust the patch to include the clock-sweep change. regards, tom lane ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [PATCHES] Regression tests

2007-05-29 Thread Tom Lane
Magnus Hagander <[EMAIL PROTECTED]> writes: > Joachim Wieland attempted to post this patch, but it appears to be gone. I trust the applied version will contain neither Windows newlines nor non-English comments. regards, tom lane -

Re: [PATCHES] WIP: 2nd-generation buffer ring patch

2007-05-29 Thread Tom Lane
n of the patch that moves usage_count incrementing to PinBuffer instead of UnpinBuffer. It does seem a good bit cleaner. regards, tom lane binalDuLkt1Ft.bin Description: buffer-ring-3.patch.gz ---(end of broadcast)-

Re: [PATCHES] WIP: 2nd-generation buffer ring patch

2007-05-29 Thread Tom Lane
ons about whether to bump the access count or not. But at the moment it doesn't seem that we really need any such info; AFAICS all the callers of PinBuffer know what they want to happen. regards, tom lane ---(end of broadcast)--- TIP 6: explain analyze is your friend

[PATCHES] WIP: 2nd-generation buffer ring patch

2007-05-29 Thread Tom Lane
. Also, I tentatively reduced the threshold at which heapscans switch to ring mode to NBuffers/16; that probably needs more thought. Lastly, I haven't done anything about making non-btree indexes honor the access strategy during VACUUM scans. regards, tom lane bi

Re: [PATCHES] Interval input: usec, msec

2007-05-28 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> writes: > On Mon, 2007-28-05 at 15:05 -0400, Tom Lane wrote: >> Hmmm ... if you check the cvs history for those tests you might find >> some evidence. > "Modify regression tests to allow GEQ optimizer (order results).", >

Re: [PATCHES] boolean <=> text explicit casts

2007-05-28 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> writes: > On Mon, 2007-28-05 at 15:38 -0400, Tom Lane wrote: >> More generally, I'm really hoping to get rid of bespoke text<->whatever >> cast functions in favor of using datatypes' I/O functions. > I don't object, but

Re: [PATCHES] CREATE TABLE LIKE INCLUDING INDEXES support

2007-05-28 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > OK, so the patch is ready to be applied? Neil's still reviewing it, last I heard. regards, tom lane ---(end of broadcast)--- TIP 4: Have you searched our

Re: [PATCHES] Seq scans status update

2007-05-28 Thread Tom Lane
ed if the clock sweep doesn't touch the usage_count of a pinned buffer. Which in fact it may not do already --- didn't look. regards, tom lane ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL

Re: [PATCHES] Seq scans status update

2007-05-28 Thread Tom Lane
igh? I'd have expected maybe at most NBuffers/4 or NBuffers/10. If you don't want a seqscan blowing out your buffer cache, you surely don't want it blowing out 90% of the cache either. regards, tom lane ---(end of broadcast)---

Re: [PATCHES] Seq scans status update

2007-05-28 Thread Tom Lane
Heikki Linnakangas <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> A point I have not figured out how to deal with is that in the patch as >> given, UnpinBuffer needs to know the strategy; and getting it that info >> would make the changes far more invasive. But the

Re: [PATCHES] boolean <=> text explicit casts

2007-05-28 Thread Tom Lane
thout causing problems. Also, invoking btrim() seems an exceedingly expensive way of ignoring a bit of whitespace. I suppose inefficiency in a seldom-used cast function does not matter, but please don't do it that way in boolin. regards, tom lane --

Re: [PATCHES] Interval input: usec, msec

2007-05-28 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> writes: > On Mon, 2007-28-05 at 10:50 -0400, Tom Lane wrote: >> I'd argue that it's an oversight. I don't have a problem with adding up >> the values of units that really translate to the same thing (eg, >> '1 we

Re: [PATCHES] Seq scans status update

2007-05-28 Thread Tom Lane
quired. What I'm tempted to do is remove the special case there and adjust buffer acquisition instead (maybe make it decrement the usage_count when re-using a buffer from the ring). Comments? I'm still playing with the ideas at this point... regards, tom lane

Re: [PATCHES] Interval input: usec, msec

2007-05-28 Thread Tom Lane
nt? I suspect that to make it work unsurprisingly, we'd need to allocate a distinct tmask bit to each logically distinct unit. (Maybe shortage of tmask bits is why the code is like it is?) regards, tom lane ---(end of broadcast)

Re: [PATCHES] cluster test

2007-05-26 Thread Tom Lane
an as preferred if you EXPLAIN the query after the regression tests complete, right? Could you step through cost_seqscan and see how it's arriving at such a high value? regards, tom lane ---(end of broadcast)--- TIP 7: Y

Re: [PATCHES] cluster test

2007-05-25 Thread Tom Lane
gree with yours) for the indexscans. Stranger and stranger. Would you try inserting a "vacuum verbose pg_constraint" into the test as well? Maybe that will tell something relevant. regards, tom lane ---(end of broadcast)--

Re: [PATCHES] Seq scans status update

2007-05-25 Thread Tom Lane
#x27;t you intending to review these in parallel because of the possible interactions? Do you think this should be applied now, or does it need to wait to see what happens with Jeff's patch? regards, tom lane ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [PATCHES] Rewritten Index Advisor patch

2007-05-25 Thread Tom Lane
ng to get it into 8.3 as a contrib module, I recommend pursuing it as a pgfoundry project, so as to decouple its release schedule from the backend's. regards, tom lane ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [PATCHES] cluster test

2007-05-25 Thread Tom Lane
did that come from? There's only one row in pg_constraint in standard template0 --- could he be working with a custom system that has many more? regards, tom lane ---(end of broadcast)--- TIP 7: You can

Re: [PATCHES] cluster test

2007-05-25 Thread Tom Lane
the regression database after a completed regression run, so it's possible that it's a bit different state from what's seen at the instant the cluster test was running, but it sure looks like the "expected" results are what you get from a seqscan. Would you force a s

Re: [PATCHES] cluster test

2007-05-25 Thread Tom Lane
he locale used by the install case? regards, tom lane ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [PATCHES] cluster test

2007-05-25 Thread Tom Lane
y that's happening rather than just throwing an ORDER BY at it. Considering the number of buildfarm machines that aren't showing any such problem, there must be something odd about yours. What's the platform? What plan is being chosen for that SELECT? reg

[PATCHES] Rewritten Index Advisor patch

2007-05-24 Thread Tom Lane
t checks to see if 2-column indexes would be more helpful if the column order were switched. It's incomplete because I didn't do anything about printing out a nice explanation of what the hypothetical index is. Comments, objections? regards, tom lane regression=

Re: [PATCHES] Configure template change to use SysV Semaphors on darwin

2007-05-24 Thread Tom Lane
wouldn't be any performance penalty for switching to SYSV semas. Seems like there is. Comments? regards, tom lane ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to c

Re: [PATCHES] Concurrent psql patch

2007-05-24 Thread Tom Lane
) and PQisBusy() on each connection. See http://www.postgresql.org/docs/8.2/static/libpq-async.html regards, tom lane ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating at h

Re: [PATCHES] Concurrent psql patch

2007-05-24 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> If there's more needed here, let's see an official API change, >> not a hack. > Well, I guess the obvious API would be something like: > PGAsyncStatusType PQasyncStatus(const PGc

Re: [PATCHES] Concurrent psql patch

2007-05-24 Thread Tom Lane
ursed mysql more than once for doing the equivalent. Also, if psql needs more than is currently exported as official API, why wouldn't other programs need it too? If there's more needed here, let's see an official API change, not a hack. regards, tom lane

Re: [PATCHES] Concurrent psql patch

2007-05-23 Thread Tom Lane
;-). But yes, bogus comments are worth the trouble to fix now. regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PATCHES] CREATE TABLE LIKE INCLUDING INDEXES support

2007-05-23 Thread Tom Lane
it's hardly fair to hold LIKE INCLUDING INDEXES to a higher standard. regards, tom lane ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your join

Re: [PATCHES] CREATE TABLE LIKE INCLUDING INDEXES support

2007-05-23 Thread Tom Lane
f the system it didn't need to touch. The original suggestion was to actively refactor existing code, which might or might not have been worthwhile. But this isn't an appropriate substitute --- it's just making the API uglier for no particular benefit.

Re: [PATCHES] Patch for circular buffer in tuplestore to optimize merge joins (v1)

2007-05-21 Thread Tom Lane
x27;s cheaper to just do that. When and if we have callers with different usage patterns, we can measure whether it's worth trying to avoid the memmove(). I'm dubious that it will be a win even then, since the only way to have a lot of stuff to move is if you don't trim very often.

Re: [PATCHES] Patch needed fot dt.h

2007-05-21 Thread Tom Lane
anch patches added a dependency on DTK_ISODOW in the first place. That looks more like a copy&paste error than something intentional. Michael? regards, tom lane ---(end of broadcast)--- TIP 4: Have you searched our list archiv

Re: [PATCHES] UTF8MatchText

2007-05-21 Thread Tom Lane
before entering the recursion. regards, tom lane ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message ca

Re: [PATCHES] COPY-able csv log outputs

2007-05-20 Thread Tom Lane
> for their statment; putting an index on the timestamp+statement seems > impractical. Essentially the above is arguing that you want a unique index but you can't be bothered to invent an actually-unique key. This doesn't seem a sound argument to me. If we need a unique key, let&#

Re: [PATCHES] UTF8MatchText

2007-05-20 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> On the strength of this analysis, shouldn't we drop the separate >> UTF8 match function and just use SB_MatchText for UTF8? > We still call NextChar() after "_", and I think we probably need to,

Re: [PATCHES] UTF8MatchText

2007-05-20 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> Andrew Dunstan <[EMAIL PROTECTED]> writes: >>> Yeah, quite possibly. I'm also wondering if we are wasting effort >>> downcasing what will in most cases be the same pattern over and over &

Re: [PATCHES] UTF8MatchText

2007-05-20 Thread Tom Lane
uld open opportunities for making use of an index on lower(x). I recall thinking at the time that there were some potential downsides, but right at the moment I'm darned if I can see any --- especially if we're going to make ILIKE do this uniformly at runtime anyway.

Re: [PATCHES] [HACKERS] Full page writes improvement, code update

2007-05-20 Thread Tom Lane
epending on whether you want it to be valid for the short-format record in the compressed file). There will also be some games to be played for WAL page boundaries, but you had to do that anyway. regards, tom lane ---(end of broadcast)-

Re: [PATCHES] UTF8MatchText

2007-05-20 Thread Tom Lane
his would leave us with just two match functions and allow considerable unification of the setup logic. regards, tom lane ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate

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