[PATCHES] Proposed patch for LISTEN/NOTIFY race condition

2008-03-11 Thread Tom Lane
27;t changed materially (except for additions of subtransaction and 2PC support) for a long time, back-patching should be straightforward, but I haven't actually done that yet. Comments? regards, tom lane binH6LxqEvTWN.bin Description: listen-race-fix.patch.gz --

Re: [PATCHES] [PERFORM] Very slow (2 tuples/second) sequential scan after bulk insert; speed returns to ~500 tuples/second after commit

2008-03-11 Thread Tom Lane
e local malloc library as to how bad it is). I'd go with the same double-it-each-time-needed approach we use elsewhere. regards, tom lane -- Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-patches

Re: [PATCHES] TransactionIdIsInProgress() cache

2008-03-11 Thread Tom Lane
ility if we can skip the call, for the cost of an > integer comparison. > Following patch implements fastpath in TransactionIdIsInProgress() to > utilise single item cache. Applied with minor adjustments and some desultory comment-improvement. regards, tom lane

Re: [PATCHES] TransactionIdIsInProgress() cache

2008-03-11 Thread Tom Lane
completeness, the raw per-backend stats are attached. Unsurprisingly, the wins come in bunches. regards, tom lane XidCache: xmin: 1, known: 0, myxact: 0, latest: 0, mainxid: 0, childxid: 0, nooflo: 0, slow: 0 XidCache: xmin: 1, known: 0, myxact: 0, latest: 0, mainxid: 0,

Re: [PATCHES] TransactionIdIsInProgress() cache

2008-03-11 Thread Tom Lane
e TransactionIdIsCurrentTransactionId test, since as was just being discussed that could have nontrivial execution time. (I'll go look at Heikki's improvement on that next, but it'll still be not-free if there's lots of subtransactions.) regards, tom lan

Re: [HACKERS] [PATCHES] Fix for large file support (nonsegment mode support)

2008-03-11 Thread Tom Lane
have been mentioned. Yeah, please just make up a ten-line C program that prints the numbers you want, and post it on -hackers for people to try. If manual testing says that it's printing useful numbers, then it would be time enough to think about how to get it into the buildfarm.

Re: [PATCHES] Remove FATAL from pg_lzdecompress

2008-03-11 Thread Tom Lane
ven the lack of field reports of compressed-data problems, it seemed to me that the risk of breaking something was larger than the chance of helping someone. We could reconsider this after the code has been in HEAD awhile, perhaps. regards, tom lane -- Sent via pgsql-pat

Re: [HACKERS] [PATCHES] Fix for large file support (nonsegment mode support)

2008-03-11 Thread Tom Lane
Zdenek Kotala <[EMAIL PROTECTED]> writes: > I think current patch could stay in CVS and I will rip out non segment > code path in a new patch. Sure, I feel no need to revert what's applied. Have at it. regards, tom lane -- Sent via pgsql-patches ma

Re: [PATCHES] TransactionIdIsInProgress() cache

2008-03-11 Thread Tom Lane
omplex already. Simon's approach hides the issue somewhere else where there aren't so many code paths to keep straight. regards, tom lane -- Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-patches

Re: [HACKERS] [PATCHES] Fix for large file support (nonsegment mode support)

2008-03-11 Thread Tom Lane
Zdenek Kotala <[EMAIL PROTECTED]> writes: > Tom Lane napsal(a): >> These examples suggest that maybe what we want is not so much a "no >> segments ever" mode as a segment size larger than 1GB. > PS: ZFS is happy with 2^64bit size and UFS has 1TB file size limit

Re: [HACKERS] [PATCHES] Fix for large file support (nonsegment mode support)

2008-03-11 Thread Tom Lane
uot;no segments ever" mode as a segment size larger than 1GB. regards, tom lane -- Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-patches

Re: [HACKERS] [PATCHES] Fix for large file support (nonsegment mode support)

2008-03-11 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> I think this needs to be treated as experimental until it's got a few >> more than zero miles under its belt. > OK, then maybe we should document that. Agreed, but at this point we don't even kno

Re: [HACKERS] [PATCHES] Fix for large file support (nonsegment mode support)

2008-03-10 Thread Tom Lane
pproximately zero. regards, tom lane -- Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-patches

Re: [HACKERS] [PATCHES] Fix for large file support (nonsegment mode support)

2008-03-10 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> Applied with minor corrections. > Why is this not the default when supported? Fear. Maybe eventually, but right now I think it's too risky. One point that I already found out the hard way is that siz

Re: [HACKERS] [PATCHES] Fix for large file support (nonsegment mode support)

2008-03-10 Thread Tom Lane
ode. Applied with minor corrections. regards, tom lane -- Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-patches

Re: [PATCHES] [HACKERS] Include Lists for Text Search

2008-03-10 Thread Tom Lane
ld be done somewhere outside the dictionary, should I revert the applied patch? regards, tom lane -- Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-patches

Re: [PATCHES] [HACKERS] Include Lists for Text Search

2008-03-10 Thread Tom Lane
Oleg Bartunov <[EMAIL PROTECTED]> writes: > On Sun, 9 Mar 2008, Tom Lane wrote: >> Would a similar parameter be useful for any of the other dictionary >> types? > There are many things desirable to do with dictionaries, for example, > say dictionary to return an ori

Re: [PATCHES] [HACKERS] Include Lists for Text Search

2008-03-10 Thread Tom Lane
t his patches to be applied? regards, tom lane -- Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-patches

Re: [PATCHES] tsvector prints pointer difference as int

2008-03-10 Thread Tom Lane
ument 2 > has type 'long int' > I was thinking the %td specifier wasn't well supported enough, so I simply > used long. Applied, thanks (and yes, %ld is what we generally use for this). regards, tom lane -- Sent via pgsql-patches mailing list (

Re: [PATCHES] [HACKERS] Include Lists for Text Search

2008-03-09 Thread Tom Lane
er dictionary types? regards, tom lane -- Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-patches

Re: [PATCHES] XLogCacheByte is unused

2008-03-09 Thread Tom Lane
ITAGAKI Takahiro <[EMAIL PROTECTED]> wrote: > I found XLogCtlData.XLogCacheByte is already unused in CVS HEAD. > Should we remove the variable, or reserve it for future use? Applied, thanks. We can always put it back if we need it again. regards, tom lane

Re: [PATCHES] Reduce the size of PageFreeSpaceInfo on 64bit platform

2008-03-09 Thread Tom Lane
itten to not use dedicated shared memory, as I hope will happen for 8.4. But we can always revert it if that happens. regards, tom lane -- Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-patches

Re: [PATCHES] Silly bug in pgbench's random number generator

2008-03-09 Thread Tom Lane
ered this way: > return min + (int) (((max - min + 1) * (double) random()) / (MAX_RANDOM_VALUE > + 1.0)); > eliminating the result of max + 1 in a corner case when random() equals to > MAX_RANDOM_VALUE. Yeah, that looks more correct. Applied. regards, tom lane

Re: [PATCHES] Remove FATAL from pg_lzdecompress

2008-03-07 Thread Tom Lane
ure if printtup is good place for it, because pg_detoast is > called from many places. However, is can be solved in separate patch. I'm still unconvinced that that's worth any added complexity or slowdown. regards, tom lane -- Sent via pgsql-patches mailing list

Re: [PATCHES] Proposed patch to change TOAST compression strategy

2008-03-07 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > "Tom Lane" <[EMAIL PROTECTED]> writes: >> * Adds an early-failure path to the compressor as suggested by Jan: >> if it's been unable to find even one compressible substring in the >> first 1KB (paramete

Re: [HACKERS] Re: [PATCHES] a tsearch2 (8.2.4) dictionary that only filters out stopwords

2008-03-07 Thread Tom Lane
ow dictionaries to change the token that is passed on to later dictionaries". regards, tom lane -- Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-patches

Re: [PATCHES] [BUGS] BUG #3975: tsearch2 index should not bomb out of 1Mb limit

2008-03-07 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> I don't think that follows. A tsearch index is lossy anyway, so there's > Uh, the index is lossy but I thought it was lossy in a way that just > required additional heap accesses, not lossy in tha

Re: [PATCHES] [BUGS] BUG #3975: tsearch2 index should not bomb out of 1Mb limit

2008-03-06 Thread Tom Lane
ich surely guarantees that searches won't find them. How can you possibly argue that that option is better? regards, tom lane -- Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-patches

Re: [PATCHES] [BUGS] BUG #3975: tsearch2 index should not bomb out of 1Mb limit

2008-03-06 Thread Tom Lane
ou from storing the document. There is another precedent too, namely that tsearch already discards individual words over so-many-bytes long. If it doesn't throw an error for that case, why is it throwing an error for this one? regards, tom lane -- Sent via pgsql-patches

[PATCHES] Minimum selectivity estimate for LIKE 'prefix%'

2008-03-06 Thread Tom Lane
ivity fixes to 8.1, so I don't have too much hesitation about doing the same here. Comments? regards, tom lane binResgmyMI0F.bin Description: like_minimum_estimate.patch.gz -- Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org) To make changes to your s

Re: [PATCHES] CopyReadLineText optimization

2008-03-06 Thread Tom Lane
BTW, I notice that the code allows CSV escape and quote characters that have the high bit set (in single-byte server encodings that is). Is this a good idea? It seems like such are extremely unlikely to be the same in two different encodings. Maybe we should restrict to the ASCII range? Especi

Re: [PATCHES] NetBSD/MIPS supports dlopen

2008-03-05 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> Weird, I haven't seen the commit message come through here. > Yeah, that's strange -- the (2) commit message got to me, but this one > hasn't. Moderation filter got it for some reason? None of

Re: [PATCHES] NetBSD/MIPS supports dlopen

2008-03-05 Thread Tom Lane
#x27;t seen the commit message come through here. Anyway: (1) this should probably be back-patched; (2) please clean up the ugly double negative here: ! #if !defined(HAVE_DLOPEN) #else dlclose(handle); #endif regards, tom lane -- Sent via pgsql-patches mailing lis

Re: [PATCHES] Sun Studio on Linux spinlock patch

2008-03-05 Thread Tom Lane
hy anyone would care ... what benefit is there to using Sun's compiler on Linux? regards, tom lane -- Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org) To make changes to your subscription: http://mail.postgresql.org/mj/mj_wwwusr?domain=postgresql.org&extra=pgsql-patches

Re: [PATCHES] WIP: guc enums

2008-03-05 Thread Tom Lane
on. Having to have two extra hook functions for every variable seems like a lot of notational overhead for not much gain. (In my experience C compilers are pretty darn lax about enums anyway, and so there's not that much "strong typing" benefit to be gained from declaring the var

Re: [PATCHES] WIP: guc enums

2008-03-05 Thread Tom Lane
"Heikki Linnakangas" <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> What I'd suggest is declaring the actual variable as int. You can still >> use an enum typedef to declare the values, and just avert your eyes >> when you have to cast the enum to i

Re: [PATCHES] WIP: guc enums

2008-03-04 Thread Tom Lane
edef to declare the values, and just avert your eyes when you have to cast the enum to int or vice versa. (This is legal per C spec, so you won't introduce any portability issues when you do it.) regards, tom lane -- Sent via pgsql-patches mailing list (pgsql-patches@

Re: [PATCHES] libpq.so linking problem on Solaris using --with-gssapi

2008-03-04 Thread Tom Lane
Bjorn Munch <[EMAIL PROTECTED]> writes: > The fix is simply to add "-lgss" to the list, as the attached patch > does. I'm pretty sure no other Makefiles are affected. Applied, thanks. regards, tom lane -- Sent via pgsql-patches mailing list (p

Re: [PATCHES] [BUGS] BUG #3973: pg_dump using inherited tables do not always restore

2008-03-03 Thread Tom Lane
"Alex Hunsaker" <[EMAIL PROTECTED]> writes: > On Wed, Feb 20, 2008 at 3:55 PM, Tom Lane <[EMAIL PROTECTED]> wrote: >> Actually the bug is that ALTER TABLE allows you to do that. It should >> not be possible to drop an inherited constraint, but right now the

Re: [PATCHES] DTrace probe patch for OS X Leopard

2008-02-29 Thread Tom Lane
d to hold still for letting poorly-designed tools dictate our coding conventions. regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PATCHES] DTrace probe patch for OS X Leopard

2008-02-29 Thread Tom Lane
x on the macro names before we start to use it? regards, tom lane ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [PATCHES] DTrace probe patch for OS X Leopard

2008-02-29 Thread Tom Lane
s tool really so badly designed that it thinks it has ownership of the *entire* namespace within the target program? regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PATCHES] remove TCL_ARRAYS

2008-02-29 Thread Tom Lane
some kluge or other in the libpgtcl client. AFAICT from the 7.x code, the client-side kluge was never enabled by default anyway, so it seems unlikely anyone will miss it. regards, tom lane ---(end of broadcast)--- TIP 5: don&

Re: [PATCHES] DTrace probe patch for OS X Leopard

2008-02-29 Thread Tom Lane
erated, which is the > file we will use for #includes, and contains just that block. Or just two files. Call probes_null something else, have it be included where needed, have it include the autogenerated file when appropriate. regards, tom lane --

Re: [PATCHES] tuplestore_putvalues()

2008-02-28 Thread Tom Lane
ons of this would be, either from a performance or number-of-places-to-change standpoint. But it seems worth a bit of investigation while we're touching the code. Other than that issue, the patch seems OK in a quick once-over. regards, tom lane

Re: [PATCHES] DTrace probe patch for OS X Leopard

2008-02-28 Thread Tom Lane
r any of the commands (initdb, psql, etc). I agree with Peter. There are a whole lot of include files that are needed by way more than 3 .c files, and yet are not folded into postgres.h. c.h is right out. regards, tom lane ---(end of broadcast)-

Re: [PATCHES] SRF memory leaks

2008-02-27 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> writes: > On Wed, 2008-02-27 at 15:07 -0500, Tom Lane wrote: >> Negative refcount does not prove that the SRF itself hasn't >> still got a pointer to the tupdesc. > That sounds quite bizarre. The SRF has already finished execution

Re: [PATCHES] SRF memory leaks

2008-02-27 Thread Tom Lane
patch into stable branches. Negative refcount does not prove that the SRF itself hasn't still got a pointer to the tupdesc. Can't we fix it so that the tupdesc is allocated in the new special context (at least in the primary code paths), and then no explicit free is needed?

Re: [PATCHES] Bulk Insert tuning

2008-02-26 Thread Tom Lane
well as read concerns; or have two versions of it, one for writing and one for reading. In any case the point being to encapsulate all these random little options in a struct, which could also carry along state that needs to be saved across a series of inserts, such as the last pinned buffer.

Re: [PATCHES] lc_time and localized dates

2008-02-26 Thread Tom Lane
system that works for different localizations. But as Peter remarks nearby, this discussion is wasted anyway, because there is only one correct answer: whatever Oracle does with these cases is what to_char() should do. regards, tom lane ---(end of b

Re: [PATCHES] SRF memory leaks

2008-02-26 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> writes: > On Mon, 2008-02-25 at 21:00 -0500, Tom Lane wrote: >> I find this part of the patch to be a seriously bad idea. > AFAICS this is not true of any of the SRFs in the backend, which always > return expendable tupdescs. "It

Re: [PATCHES] Shlib exports file refactoring

2008-02-25 Thread Tom Lane
lem. If you were asking for tests that the buildfarm wouldn't make, I might think differently ... but then you'd need to be giving some more detailed directions than these. regards, tom lane ---(end of broadcast)-

Re: [PATCHES] SRF memory leaks

2008-02-25 Thread Tom Lane
try to make the tupdesc be in the new multi_call_ctx when it's being created by the funcapi.c code. regards, tom lane ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [PATCHES] Fix pgstatindex using for large indexes

2008-02-25 Thread Tom Lane
obably some fairly small number of years. My position is simply that pgstattuple does not present a reason to make that decision today, especially not when making it rely on int64 is at variance with the coding method already in use in related parts of the core backend.

Re: [PATCHES] Avahi support for Postgresql

2008-02-25 Thread Tom Lane
r the heck that means in zeroconf)? 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] Fix pgstatindex using for large indexes

2008-02-25 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >>> Is there any currently supported platform which >>> does not have uint64? >> >> I don't know, and neither do you. > Maybe we should look at some reasonable way of getting the info out

Re: [PATCHES] Fix pgstatindex using for large indexes

2008-02-25 Thread Tom Lane
Zdenek Kotala <[EMAIL PROTECTED]> writes: > Tom Lane napsal(a): >> Most places where we've dealt with this before, we use double, which is >> guaranteed to be available whereas uint64 is not ... > Is this requirement still valid? Yes. > Is there any currently

Re: [PATCHES] fix in --help output

2008-02-22 Thread Tom Lane
onfigure.in: if test "$PORTNAME" = "solaris"; then AC_LIBOBJ(getopt) AC_LIBOBJ(getopt_long) fi regards, tom lane ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [PATCHES] --describe-config crashes

2008-02-21 Thread Tom Lane
s an empty string. Since that's also effectively the way GUC handles it, I'm inclined to think we should print NULL as "" not "(NULL)". Otherwise, will apply. regards, tom lane ---(end of broadcast)--

Re: [PATCHES] fix in --help output

2008-02-21 Thread Tom Lane
bug is that we are using it rather than one that acts the way we want. 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] Fix pgstatindex using for large indexes

2008-02-21 Thread Tom Lane
int-max. > ... > I think that max_avail and free_space should be uint64. Most places where we've dealt with this before, we use double, which is guaranteed to be available whereas uint64 is not ... regards, tom lane ---

Re: [PATCHES] [BUGS] BUG #3969: pg_ctl cannot detect server startup

2008-02-20 Thread Tom Lane
s use " \f\n\r\t\v" ? Not sure. One point is that vertical whitespace shouldn't necessarily be treated the same as horizontal whitespace. regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PATCHES] tzcode update

2008-02-18 Thread Tom Lane
es in the committed patch specifically to make it obvious if you were using tz files that lacked post-2038 support. I can't imagine that fixing this isn't pretty darn high on the Solaris to-do list, anyway. Financial apps doing, say, 30-year mortgage projections are broken *today

Re: [PATCHES] Proposed patch to change TOAST compression strategy

2008-02-18 Thread Tom Lane
his patch and see what the results are like? regards, tom lane ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[PATCHES] Proposed patch to change TOAST compression strategy

2008-02-17 Thread Tom Lane
ic test scenarios they'd like to try? regards, tom lane bin5xGxvAMBU7.bin Description: toast-strategy.patch ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscr

Re: [PATCHES] tzcode update

2008-02-16 Thread Tom Lane
t I thought replacing them with a cast-based overflow check was at least as good. regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PATCHES] Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVC strikes back!)

2008-02-14 Thread Tom Lane
matches LC_CTYPE, or maybe even just alter the presented values for other LC_foo variables to match. regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PATCHES] tzcode update

2008-02-13 Thread Tom Lane
numerator is undefined in C (or at least used to be --- did C99 tighten this up?). regards, tom lane ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [PATCHES] Proposed patch for 8.3 VACUUM FULL crash

2008-02-11 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > "Tom Lane" <[EMAIL PROTECTED]> writes: >> On investigation the problem occurs because we changed vacuum.c's >> PageGetFreeSpaceWithFillFactor() to use PageGetHeapFreeSpace() >> instead of just computin

Re: [PATCHES] tzcode update

2008-02-11 Thread Tom Lane
27;m not too surprised that there are no cases in the regression tests that notice. We should probably add some reaching out to 2100 or so. regards, tom lane ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [PATCHES] Endless recovery

2008-02-11 Thread Tom Lane
cleanup phase > shouldn't take long. That's what it smells like to me too. Any chance that you still have the WAL log for examination? regards, tom lane ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [PATCHES] NUMERIC key word

2008-02-10 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> writes: > On Tue, 2008-01-29 at 13:20 -0500, Tom Lane wrote: >> The reason it was kept was to override the search path --- unqualified >> NUMERIC will always be taken as pg_catalog.numeric even if you have some >> other type "numeric&

[PATCHES] Proposed patch for 8.3 VACUUM FULL crash

2008-02-10 Thread Tom Lane
blem. I am thinking that the extra notup condition should be back-patched, at least as far back as we have fillfactor support, and maybe all the way back on general principles. Comments? regards, tom lane Index: vacuum.c ===

Re: [PATCHES] Proposed patch for bug #3921

2008-02-03 Thread Tom Lane
so I'm starting to think more and more that that's really the right definition. regards, tom lane ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate

[PATCHES] Proposed patch for bug #3921

2008-02-02 Thread Tom Lane
t tack we could take is to adopt the position that LIKE INCLUDING INDEXES shouldn't copy index tablespaces at all, but I didn't hear anyone favoring that approach in the bug discussion. regards, tom lane Index: src/backend/commands/indexcmds.c =

Re: [PATCHES] NUMERIC key word

2008-01-29 Thread Tom Lane
ave that behavior and NUMERIC not. 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] WIP: plpgsql source code obfuscation

2008-01-28 Thread Tom Lane
t valid in the new database encoding. We've just gone around > closing doors like this. Ah, right, I hadn't thought about that, but it would be a hazard. regards, tom lane ---(end of broadcast)--- TIP 3: Hav

Re: [PATCHES] WIP: plpgsql source code obfuscation

2008-01-28 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> However, I definitely agree that a separate loadable PL is the way to go >> for functionality of this sort. There is no way that a dependency on >> pgcrypto is going to be accepted into core, not even in t

Re: [PATCHES] WIP: plpgsql source code obfuscation

2008-01-28 Thread Tom Lane
at doesn't seem like a showstopper problem. regards, tom lane ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [PATCHES] WIP: plpgsql source code obfuscation

2008-01-28 Thread Tom Lane
ality of this sort. There is no way that a dependency on pgcrypto is going to be accepted into core, not even in the (ahem) obfuscated way that it's presented here. regards, tom lane ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [PATCHES] Proposed patch: synchronized_scanning GUC variable

2008-01-27 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > I liked the "synchronized_sequential_scans" idea myself. The name is still open for discussion --- it's an easy search-and-replace in the patch ... regards, tom lane

[PATCHES] Proposed patch: synchronized_scanning GUC variable

2008-01-27 Thread Tom Lane
le, I thought I'd better post it for comment anyway. regards, tom lane Index: doc/src/sgml/config.sgml === RCS file: /cvsroot/pgsql/doc/src/sgml/config.sgml,v retrieving revision 1.162 diff -c -r1.162 config.sg

Re: [PATCHES] [8.4] Updated WITH clause patch (non-recursive)

2008-01-27 Thread Tom Lane
;s an incremental step along a clearly defined path to full WITH support in 8.4. I'm less eager to put it in if there's not a plan and a commitment to make that happen. regards, tom lane ---(end of broadcast)--

Re: [PATCHES] [8.4] Updated WITH clause patch (non-recursive)

2008-01-27 Thread Tom Lane
mplementation. I don't recall at the moment if Greg has a credible design sketch for the remaining work, but it might be a good idea to review that before deciding. regards, tom lane ---(end of broadcast)--- TIP 7: You can

Re: [PATCHES] sinval contention reduction

2008-01-26 Thread Tom Lane
Simon Riggs <[EMAIL PROTECTED]> writes: > On Fri, 2008-01-25 at 19:02 -0500, Tom Lane wrote: >> This seems large, complex, and untested (I note in particular a >> guaranteed-to-fail Assert). > Yes, its for discussion. How would you describe such a patch in the > f

Re: [PATCHES] sinval contention reduction

2008-01-25 Thread Tom Lane
sgNum == segP->minMsgNum when they first respond to a signal. Do you have any evidence for performance improvement? regards, tom lane ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropria

Re: [PATCHES] [HACKERS] Thoughts about bug #3883

2008-01-25 Thread Tom Lane
ers ignored the result), ending up with exactly parallel code in die() and StatementCancelHandler(). Seems cleaner than before. regards, tom lane Index: src/backend/port/posix_sema.c === RCS file: /cvsroot/pgs

Re: [PATCHES] Friendly help for psql

2008-01-20 Thread Tom Lane
ption notice would remain as possible additions.) We really shouldn't be designing this on -patches, though. regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PATCHES] Friendly help for psql

2008-01-20 Thread Tom Lane
n't like the "Help me" thing though). I think you're headed in the same direction as Alvaro. A slight extension on this would be help produces short blurb describing \h and \? help something produces same result as \h some

Re: [PATCHES] Friendly help for psql

2008-01-20 Thread Tom Lane
"\?" all provoke the same response(s) in mysql. Perhaps a patch that had had more than two seconds' design effort in it would do the same in psql; though I'm not sure what to do to disambiguate the case with no arguments. regards, tom lane

Re: [PATCHES] [GENERAL] Forgot to dump old data before re-installing machine

2008-01-18 Thread Tom Lane
e scenario would be someone blindly following the hint and blowing away their old data ... 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] [GENERAL] Forgot to dump old data before re-installing machine

2008-01-18 Thread Tom Lane
uot;you need to initdb" is appropriate. I think it still is, at least as much as it is in other situations where we say that. I didn't like the wording of the other part of the hint though. Maybe "This could be a problem of mismatched byte ordering"?

Re: [PATCHES] [HACKERS] SSL over Unix-domain sockets

2008-01-17 Thread Tom Lane
odify the tmp cleanup script, > the admin might as well create the symlink at the same time and have it > recreate on boot. No, that's not the same, because it doesn't provide protection against the symlink getting deleted later on.

Re: [PATCHES] [HACKERS] SSL over Unix-domain sockets

2008-01-17 Thread Tom Lane
TW, is a symlink's atime changed by accessing it? We could imagine adapting the existing postmaster code that keeps the socket atime fresh so that it will work on a symlink, thus providing partial protection against tmp-cleaners. Portability of this is uncertain...

Re: [PATCHES] [HACKERS] SSL over Unix-domain sockets

2008-01-17 Thread Tom Lane
y if the attacker didn't get there first. I think this idea is nothing but a crude kluge anyway... regards, tom lane ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate

[PATCHES] Proposed patch for renaming constraints along with indexes

2008-01-16 Thread Tom Lane
need to be documented, except as a release-note item. Comments? regards, tom lane binKlTSMUpwon.bin Description: rename-index-constraints.patch ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an a

[PATCHES] Revised xml memory allocation patch

2008-01-14 Thread Tom Lane
not? Note: the patch removes most of the PG_TRY blocks in xml.c. For ease of reading I did not reindent the contained code, but will do so before applying, if we choose to apply. regards, tom lane binymlB0qnjYe.bin Description: xml-mem-4.patch

Re: [PATCHES] Revised patch for fixing archiver shutdown behavior

2008-01-11 Thread Tom Lane
st checking. Yeah, the postmaster would complain at exit, but the pg_control state is already SHUTDOWN at that point. There'd be a log entry showing abnormal archiver exit if the panic had had any actual effect on it. regards, tom lane -

Re: [PATCHES] [BUGS] BUG #3860: xpath crashes backend when is querying xmlagg result

2008-01-10 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > Tom Lane escribió: >> One thing I was wondering about earlier today is whether libxml isn't >> expecting NULL-return-on-failure from the malloc-substitute routine. >> If we take control away from it unexpectedly, I would

Re: [PATCHES] [BUGS] BUG #3860: xpath crashes backend when is querying xmlagg result

2008-01-10 Thread Tom Lane
() will get rid of all staticly-allocated pointers and not crash, whereas right now we are assuming a great deal of libxml stuff still works after an ereport (which makes throwing ereport from xml_palloc even more risky). regards, tom lane ---(end of b

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