[HACKERS] Make length(char(n)) return 'true' length

2004-01-27 Thread Gavin Sherry
The attached patch changes the existing behaviour of length(char(n)). Currently, this is what happens: template1=# select length('blah'::char(10)); length 10 (1 row) With this patch: template1=# select length('blah'::char(10)); length 4 (1 row) This behaviour was

[HACKERS] Most urgent

2004-01-27 Thread ohp
My server just had a bad crash... At reboot time, the pg_xlog filesystem didn't mount... The I have those errors at startup... is there anything can do to recover? Jan 27 13:24:11 server postgres[3469]: [3-1] LOG: checkpoint record is at 7/B7668 Jan 27 13:24:11 server postgres[3469]: [4-1]

Re: [HACKERS] returning PGresult as xml

2004-01-27 Thread Scott Lamb
On Jan 25, 2004, at 3:07 AM, Brian Moore wrote: it's been said that converting a PGresult into xml is trivial and that's why it hasn't been done in the codebase as of yet. i have seen much code that writes xml, and many mistakes are made. most often improper escaping, or writing to a schema/DTD

Re: [HACKERS] returning PGresult as xml

2004-01-27 Thread Andrew Dunstan
Scott Lamb wrote: On Jan 25, 2004, at 3:07 AM, Brian Moore wrote: PGresult num_rows='1' num_cols='2' col_desc num='0' type='int4' format='text' name='foo' / col_desc num='1' type='int4' format='text' name='bar' / row num='0' col num='0'1/col col num='1'2/col /row /PGresult

Re: [HACKERS] Recursive optimization of IN subqueries

2004-01-27 Thread Simon Riggs
Tom Lane writes In the second place, what the code is doing is dependent on an understanding of the semantics of IN; I'm not sure it's applicable to, say, WHERE outervar ANY (SELECT innervar FROM ...) and it's definitely not applicable to WHERE outervar ALL (SELECT innervar

Re: [HACKERS] Recursive optimization of IN subqueries

2004-01-27 Thread Simon Riggs
Tom Lane writes In the second place, what the code is doing is dependent on an understanding of the semantics of IN; I'm not sure it's applicable to, say, WHERE outervar ANY (SELECT innervar FROM ...) and it's definitely not applicable to WHERE outervar ALL (SELECT innervar

[HACKERS] building plperl on 7.4.1

2004-01-27 Thread Dave Cramer
I tried to build plperl on 7.4.1, On my system perl -MConfig -e 'print $Config{ccdlflags}' returns -rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE however the build ends up using -rpath,$prefix/lib Dave -- Dave Cramer 519 939 0336 ICQ # 1467551

[HACKERS] index scan with functional indexes

2004-01-27 Thread Dave Cramer
I'm curious what the result of a reverse index does on a table with url like data, so I did the following create function fn_strrev(text) returns text as 'return reverse($_[0])' language 'plperl' with (iscachable); create index r_url_idx on url( fn_strrev(url)); vacuum analyze; explain

Re: [HACKERS] Recursive optimization of IN subqueries

2004-01-27 Thread Dennis Haney
Simon Riggs wrote: Tom Lane writes In the second place, what the code is doing is dependent on an understanding of the semantics of IN; I'm not sure it's applicable to, say, WHERE outervar ANY (SELECT innervar FROM ...) and it's definitely not applicable to WHERE outervar ALL

Re: [HACKERS] LWLock/ShmemIndex startup question

2004-01-27 Thread Robert Treat
On Fri, 2004-01-23 at 00:21, Tom Lane wrote: Bruce Momjian [EMAIL PROTECTED] writes: Andrew Dunstan wrote: AFAIK the only target build environment for Windows right now is MinGW/gcc If anyone knows how to get the M$ compilers to work nicely with our build system that might be

Re: [HACKERS] Recursive optimization of IN subqueries

2004-01-27 Thread Simon Riggs
My mistake then. Better to check than let a logical hole in Thanks for letting me know, Simon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Haney Sent: Tuesday, January 27, 2004 14:33 To: [EMAIL PROTECTED] Cc: 'Tom Lane'; [EMAIL

[HACKERS] Another optimizer question

2004-01-27 Thread Dennis Haney
Hi Is it just me, or is there any way a sort could be relevant in a subquery? (except on queries containing volatile functions) select a.* from test1 a, (select id from test1 order by num) as b where a.id = b.id; There is no constraint on the order of 'a', so why is pull_up_subqueries

[HACKERS] Function call

2004-01-27 Thread Dennis Bjorklund
I've been looking in the sql200x draft and there are no function calls with named arguments. Thinking more about it, I'm not sure if it really is an important addition at all. I've got a number of requests for the feature. so there are people that want it, that much I know. I don't think it's

Re: [HACKERS] Most urgent

2004-01-27 Thread Tom Lane
[EMAIL PROTECTED] writes: My server just had a bad crash... At reboot time, the pg_xlog filesystem didn't mount... So mount it... If you're trying to say that the xlog is irretrievably hosed, then see pg_resetxlog, and be prepared to spend some time checking to see if anything got corrupted.

Re: [HACKERS] Function call

2004-01-27 Thread Peter Eisentraut
Dennis Bjorklund wrote: Thinking more about it, I'm not sure if it really is an important addition at all. I've got a number of requests for the feature. so there are people that want it, that much I know. I like it very much, and I think mostly everyone else does, too. It's just a question

Re: [HACKERS] Most urgent

2004-01-27 Thread ohp
On Tue, 27 Jan 2004, Tom Lane wrote: Date: Tue, 27 Jan 2004 12:02:04 -0500 From: Tom Lane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: pgsql-hackers list [EMAIL PROTECTED] Subject: Re: [HACKERS] Most urgent [EMAIL PROTECTED] writes: My server just had a bad crash... At reboot time, the

[HACKERS] Incorrect START TRANSACTION implementation

2004-01-27 Thread Peter Eisentraut
SQL99 part 2 clause 16.1 contains this note: NOTE 327 - The characteristics of a transaction begun by a start transaction statement are as specified in these General Rules regardless of the characteristics specified by any preceding set transaction statement. That is, even if one

Re: [HACKERS] Recursive optimization of IN subqueries

2004-01-27 Thread Tom Lane
Simon Riggs [EMAIL PROTECTED] writes: Tom Lane writes In particular, the optimization paths that involve unique-ifying the subselect output and then using it as the outer side of a join would definitely not work for these sorts of things. I'm not sure if I've understood you correctly in the

Re: [HACKERS] index scan with functional indexes

2004-01-27 Thread Tom Lane
Dave Cramer [EMAIL PROTECTED] writes: create index r_url_idx on url( fn_strrev(url)); explain select * from url where url like fn_strrev('%beta12.html'); QUERY PLAN - Seq Scan on url (cost=0.00..13281.70 rows=1

Re: [HACKERS] Another optimizer question

2004-01-27 Thread Bruno Wolff III
On Tue, Jan 27, 2004 at 17:27:25 +0100, Dennis Haney [EMAIL PROTECTED] wrote: Is it just me, or is there any way a sort could be relevant in a subquery? (except on queries containing volatile functions) Yes. It is important when a limit or distinct on clause is used in a subquery.

Re: [HACKERS] index scan with functional indexes

2004-01-27 Thread Dave Cramer
same answer davec=# show enable_seqscan; enable_seqscan off (1 row) davec=# explain analyze select * from url where fn_strrev(url) like '%beta12.html'; QUERY PLAN

Re: [HACKERS] index scan with functional indexes

2004-01-27 Thread Stephan Szabo
On Tue, 27 Jan 2004, Dave Cramer wrote: same answer davec=# show enable_seqscan; enable_seqscan off (1 row) davec=# explain analyze select * from url where fn_strrev(url) like '%beta12.html'; That's still an unanchored like clause, besides I think that would get

Re: [HACKERS] index scan with functional indexes

2004-01-27 Thread Tom Lane
Dave Cramer [EMAIL PROTECTED] writes: davec=# explain analyze select * from url where fn_strrev(url) like '%beta12.html'; Don't you need the % at the right end to have an indexable plan? I suspect that both of your tries so far are actually semantically wrong, and that what you intend is

Re: [HACKERS] Another optimizer question

2004-01-27 Thread Tom Lane
Dennis Haney [EMAIL PROTECTED] writes: There is no constraint on the order of 'a', so why is pull_up_subqueries explicitly ignoring subqueries that contain an 'order by'? Because there would be no place to apply the sort operation. If you are saying you don't want the sort to occur, why did

Re: [HACKERS] index scan with functional indexes

2004-01-27 Thread Dave Cramer
Tried, all the suggestions --dc-- davec=# explain analyze select * from url where fn_strrev(url) like fn_strrev('%beta12.html'); QUERY PLAN

Re: [HACKERS] Function call

2004-01-27 Thread Tom Lane
Peter Eisentraut [EMAIL PROTECTED] writes: Dennis Bjorklund wrote: Thinking more about it, I'm not sure if it really is an important addition at all. I've got a number of requests for the feature. so there are people that want it, that much I know. I like it very much, and I think mostly

Re: [HACKERS] Incorrect START TRANSACTION implementation

2004-01-27 Thread Tom Lane
Peter Eisentraut [EMAIL PROTECTED] writes: SQL99 part 2 clause 16.1 contains this note: NOTE 327 - The characteristics of a transaction begun by a start transaction statement are as specified in these General Rules regardless of the characteristics specified by any preceding

Re: [HACKERS] index scan with functional indexes

2004-01-27 Thread Tom Lane
Dave Cramer [EMAIL PROTECTED] writes: Tried, all the suggestions Mph. It works for me... what PG version are you using exactly, and are you certain you've selected C locale? (Do you get LIKE optimization on plain indexes?) regards, tom lane

Re: [HACKERS] index scan with functional indexes

2004-01-27 Thread Dave Cramer
I'm using 7.4.1, the db was initdb --locale='C' and no I don't get them on plain indexes Dave On Tue, 2004-01-27 at 13:28, Tom Lane wrote: Dave Cramer [EMAIL PROTECTED] writes: Tried, all the suggestions Mph. It works for me... what PG version are you using exactly, and are you

Re: [HACKERS] Extending SET SESSION AUTHORIZATION

2004-01-27 Thread Tom Lane
Ezra Epstein [EMAIL PROTECTED] writes: I'd like to extend SET SESSION AUTHORIZATION to support a form which takes a password. Uh, a password? What purpose would that serve? For exactly the opposite usage: allowing a non-privileged user to take on a different authorization IFF a password

Re: [HACKERS] index scan with functional indexes

2004-01-27 Thread Tom Lane
Dave Cramer [EMAIL PROTECTED] writes: I'm using 7.4.1, the db was initdb --locale='C' and no I don't get them on plain indexes Oh? If it's 7.4 then you can confirm the locale selection with show lc_collate and show lc_ctype (I think the first of these is what the LIKE optimization

Re: [HACKERS] Mixing threaded and non-threaded

2004-01-27 Thread Steve Atkins
On Fri, Jan 23, 2004 at 10:03:30PM -0500, Bruce Momjian wrote: Steve Atkins wrote: When I rebuilt libpq to use threads, I started seeing a bunch of weird failures in many of the older applications. The change in libpq meant that libpthread was being dynamically linked into the

Re: [HACKERS] Another optimizer question

2004-01-27 Thread Dennis Haney
Bruno Wolff III wrote: On Tue, Jan 27, 2004 at 17:27:25 +0100, Dennis Haney [EMAIL PROTECTED] wrote: Is it just me, or is there any way a sort could be relevant in a subquery? (except on queries containing volatile functions) Yes. It is important when a limit or

Re: [HACKERS] Mixing threaded and non-threaded

2004-01-27 Thread Bruce Momjian
Steve Atkins wrote: My guess is that creating applications against the non-thread libpq and then replacing it with a threaded libpq is your problem. Yes. It seems to make no difference whether the application is rebuilt or not. It's pulling libpthread into a non-thread-aware application

Re: [HACKERS] Another optimizer question

2004-01-27 Thread Dennis Haney
Tom Lane wrote: Dennis Haney [EMAIL PROTECTED] writes: There is no constraint on the order of 'a', so why is pull_up_subqueries explicitly ignoring subqueries that contain an 'order by'? Because there would be no place to apply the sort operation. Then why spend time

Re: [HACKERS] index scan with functional indexes -- solved

2004-01-27 Thread Dave Cramer
Interesting it works now, and the good news is it is *WAY* faster, this might be able to speed up marc's doc search by orders of magnitude this is searching 100536 rows select * from url where fn_strrev(url) like fn_strrev('%beta12.html'); 1.57ms explain select * from url where url like

[HACKERS] pl/pgSQL versus pl/Python

2004-01-27 Thread Joshua D. Drake
Hello, With the new preload option is there any benefit/drawback to using pl/Python versus pl/pgSQL? And no... I don't care that pl/Python is now considered untrusted. Sincerely, Joshua D. Drake -- Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC Postgresql support,

Re: [HACKERS] Mixing threaded and non-threaded

2004-01-27 Thread Steve Atkins
On Tue, Jan 27, 2004 at 02:07:44PM -0500, Bruce Momjian wrote: Steve Atkins wrote: My guess is that creating applications against the non-thread libpq and then replacing it with a threaded libpq is your problem. Yes. It seems to make no difference whether the application is rebuilt

Re: [HACKERS] Incorrect START TRANSACTION implementation

2004-01-27 Thread Peter Eisentraut
Tom Lane wrote: Are you sure you're reading that correctly? Not anymore... :-/ Sorry for the noise. I had remembered that in some context set transaction and set session characteristics were interchangeable, but apparently I got it all mixed up. ---(end of

Re: [HACKERS] Function call

2004-01-27 Thread Dennis Bjorklund
On Tue, 27 Jan 2004, Tom Lane wrote: In particular, how will you avoid individually trawling through every function with a matching name to try to match up the arguments? I don't think you can avoid that. But it's just done once to find the oid of the real function, so if it's used multiple

Re: [HACKERS] Function call

2004-01-27 Thread Dennis Bjorklund
On Tue, 27 Jan 2004, Peter Eisentraut wrote: just a question of what syntax to use. Personally, I would be OK with =. That's also what I'm leaning towards now. As Greg suggested, just making = a special case as a function parameter. And if one want's to call a function with an expression

Re: [HACKERS] Mixing threaded and non-threaded

2004-01-27 Thread Scott Lamb
On Jan 27, 2004, at 1:16 PM, Steve Atkins wrote: A hint, though, might be that it's a multiprocess application with a single master process that controls dozens of child processes. When the master shuts down it asks all the children to shut down, and then it deadlocks in the SIGCHILD handler. It's

[HACKERS] Question about indexes

2004-01-27 Thread Greg Stark
How feasible would it be to have a btree index on ctid? I'm thinking it ought to work simply enough for the normal case of insert/delet/update, but I'm not completely certain how vacuum, vacuum full, and cluster would interact. You may think this would be utterly useless, but I have a cunning

Re: [HACKERS] Function call

2004-01-27 Thread Tom Lane
Dennis Bjorklund [EMAIL PROTECTED] writes: On Tue, 27 Jan 2004, Tom Lane wrote: func_select_candidate() that involve comparing matches at the same argument position will break down completely. I was planning to reorder the arguments before the matching according to the function prototype so

[HACKERS] Pl/Java 1.0.0.b now avaiable on Linux 386 and Cygwin

2004-01-27 Thread Thomas Hallgren
The Pl/Java project that I'm working on is progressing quite nicely. The beta release that I just uploaded to GBorg at http://gborg.postgresql.org/project/pljava/projdisplay.php has most of the functionality that I have intended for the first stable release. If you are interested, please take a

Re: [HACKERS] Function call

2004-01-27 Thread Dennis Bjorklund
On Tue, 27 Jan 2004, Tom Lane wrote: speed hits in parsing them, especially not if the hit occurs whether one uses the named-parameters feature or not ... I'll read the rest of the mail more careful tomorrow moring, I just want to point out directly that for calls that doesn't use named

Re: [HACKERS] Another optimizer question

2004-01-27 Thread Hannu Krosing
Dennis Haney kirjutas T, 27.01.2004 kell 21:08: Tom Lane wrote: Dennis Haney [EMAIL PROTECTED] writes: There is no constraint on the order of 'a', so why is pull_up_subqueries explicitly ignoring subqueries that contain an 'order by'? Because there would be no place to

Re: [HACKERS] Mixing threaded and non-threaded

2004-01-27 Thread Manfred Spraul
Bruce Momjian wrote: Woh, as far as I know, any application should run fine with -lpthread, threaded or not. What OS are you on? This is the first I have heard of this problem. Perhaps we should try to figure out how other packages handle multithreaded/singlethreaded libraries? I'm looking

[HACKERS] Write cache

2004-01-27 Thread ohp
Because I've lost a lot of data using postgresql (and I know for sure this should'nt happen) I've gone a bit further reading documentations on my disks and... I have FUJITSU MAP3367NC 36G 1 rpm disks, those disk have a write cache of 8Mb, if someone could tell me hox to turn it off...

Re: [HACKERS] Extending SET SESSION AUTHORIZATION

2004-01-27 Thread Tom Lane
Ezra Epstein [EMAIL PROTECTED] writes: I do not think SET SESSION AUTH is a suitable replacement for logging in. For one thing, it doesn't apply per-user GUC settings. For OK, what are GUC settings. Can SET SESSION AUTH be extended to do this as needed? Not very easily; it's not clear to

Re: [HACKERS] Write cache

2004-01-27 Thread Larry Rosenman
IDE or SCSI? Why do you think the WC is screwing you? Which driver(s)? LER --On Tuesday, January 27, 2004 22:34:46 +0100 [EMAIL PROTECTED] wrote: Because I've lost a lot of data using postgresql (and I know for sure this should'nt happen) I've gone a bit further reading documentations on my

Re: [HACKERS] Write cache

2004-01-27 Thread ohp
On Tue, 27 Jan 2004, Larry Rosenman wrote: Date: Tue, 27 Jan 2004 15:38:30 -0600 From: Larry Rosenman [EMAIL PROTECTED] To: [EMAIL PROTECTED], pgsql-hackers list [EMAIL PROTECTED] Subject: Re: Write cache IDE or SCSI? SCSI Why do you think the WC is screwing you? Because after a sys

Re: [HACKERS] Write cache

2004-01-27 Thread Larry Rosenman
--On Tuesday, January 27, 2004 22:43:34 +0100 [EMAIL PROTECTED] wrote: On Tue, 27 Jan 2004, Larry Rosenman wrote: Date: Tue, 27 Jan 2004 15:38:30 -0600 From: Larry Rosenman [EMAIL PROTECTED] To: [EMAIL PROTECTED], pgsql-hackers list [EMAIL PROTECTED] Subject: Re: Write cache IDE or SCSI? SCSI

Re: [HACKERS] Write cache

2004-01-27 Thread ohp
On Tue, 27 Jan 2004, Larry Rosenman wrote: Date: Tue, 27 Jan 2004 15:45:20 -0600 From: Larry Rosenman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: pgsql-hackers list [EMAIL PROTECTED] Subject: Re: Write cache --On Tuesday, January 27, 2004 22:43:34 +0100 [EMAIL PROTECTED] wrote: On

Re: [HACKERS] Function call

2004-01-27 Thread Tom Lane
Dennis Bjorklund [EMAIL PROTECTED] writes: I'll read the rest of the mail more careful tomorrow moring, I just want to point out directly that for calls that doesn't use named arguments you get the exact same speed as before. Except for an extra if() to check if there are named arguments. I

Re: [HACKERS] Write cache

2004-01-27 Thread Larry Rosenman
--On Tuesday, January 27, 2004 22:48:42 +0100 [EMAIL PROTECTED] wrote: On Tue, 27 Jan 2004, Larry Rosenman wrote: Date: Tue, 27 Jan 2004 15:45:20 -0600 From: Larry Rosenman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: pgsql-hackers list [EMAIL PROTECTED] Subject: Re: Write cache --On Tuesday,

Re: [HACKERS] Another optimizer question

2004-01-27 Thread Tom Lane
Hannu Krosing [EMAIL PROTECTED] writes: Dennis Haney kirjutas T, 27.01.2004 kell 21:08: I'm saying the sort makes no sense. So why even bother executing it? why did you write it? I believe the most common scenario would be that the subquery was expanded from a view... And why is it

Re: [HACKERS] Write cache

2004-01-27 Thread ohp
On Tue, 27 Jan 2004, Larry Rosenman wrote: Date: Tue, 27 Jan 2004 15:55:49 -0600 From: Larry Rosenman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: pgsql-hackers list [EMAIL PROTECTED] Subject: Re: Write cache --On Tuesday, January 27, 2004 22:48:42 +0100 [EMAIL PROTECTED] wrote: On

Re: [HACKERS] Write cache

2004-01-27 Thread Larry Rosenman
--On Tuesday, January 27, 2004 23:01:45 +0100 [EMAIL PROTECTED] wrote: On Tue, 27 Jan 2004, Larry Rosenman wrote: Date: Tue, 27 Jan 2004 15:55:49 -0600 From: Larry Rosenman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: pgsql-hackers list [EMAIL PROTECTED] Subject: Re: Write cache --On Tuesday,

Re: [HACKERS] Write cache

2004-01-27 Thread ohp
On Tue, 27 Jan 2004, Larry Rosenman wrote: Date: Tue, 27 Jan 2004 16:02:40 -0600 From: Larry Rosenman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: pgsql-hackers list [EMAIL PROTECTED] Subject: Re: Write cache --On Tuesday, January 27, 2004 23:01:45 +0100 [EMAIL PROTECTED] wrote: On

Re: [HACKERS] Write cache

2004-01-27 Thread Larry Rosenman
--On Tuesday, January 27, 2004 23:03:56 +0100 [EMAIL PROTECTED] wrote: On Tue, 27 Jan 2004, Larry Rosenman wrote: Date: Tue, 27 Jan 2004 16:02:40 -0600 From: Larry Rosenman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: pgsql-hackers list [EMAIL PROTECTED] Subject: Re: Write cache --On Tuesday,

Re: [HACKERS] Another optimizer question

2004-01-27 Thread Rod Taylor
As a more direct response, there *are* reasons for people to put ORDER BY in a subselect and expect it to be honored. The typical example that's been discussed several times in the archives is that you want to use an aggregate function that is sensitive to the ordering of its input Not to

Re: [HACKERS] Another optimizer question

2004-01-27 Thread Tom Lane
Rod Taylor [EMAIL PROTECTED] writes: As a more direct response, there *are* reasons for people to put ORDER BY in a subselect and expect it to be honored. The typical example that's been discussed several times in the archives is that you want to use an aggregate function that is sensitive to

Re: [HACKERS] Question about indexes

2004-01-27 Thread Tom Lane
Greg Stark [EMAIL PROTECTED] writes: How feasible would it be to have a btree index on ctid? Why would you want one? Direct access by ctid beats out an index lookup every time. In any case, vacuum and friends would break such an index entirely. regards, tom lane

Re: [HACKERS] Question about indexes

2004-01-27 Thread Greg Stark
Tom Lane [EMAIL PROTECTED] writes: Greg Stark [EMAIL PROTECTED] writes: How feasible would it be to have a btree index on ctid? Why would you want one? Direct access by ctid beats out an index lookup every time. Of course. But as I mentioned, I have a cunning plan. If you have two

Re: [HACKERS] Write cache

2004-01-27 Thread Andreas Pflug
[EMAIL PROTECTED] wrote: Nothing special... And any option I could use would'nt change a thing: the cache is on the disk itself... I did'nt look physicaly yet but according to the docs there's no way to disable it lik I always did on IBM... I was forced to buy those disk (more expensive, not

Re: [HACKERS] Question about indexes

2004-01-27 Thread Tom Lane
Greg Stark [EMAIL PROTECTED] writes: If you have two indexes (a,ctid) and (b,ctid) and do a query where a=1 and b=2 then it would be particularly easy to combine the two efficiently. If specially marked btree indexes -- or even all btree indexes -- implicitly had ctid as a final sort order

Re: [HACKERS] pl/pgSQL versus pl/Python

2004-01-27 Thread James William Pye
On 01/27/04:04/2, Joshua D. Drake wrote: With the new preload option is there any benefit/drawback to using pl/Python versus pl/pgSQL? And no... I don't care that pl/Python is now considered untrusted. Feature-wise I'm not exactly sure how pl/Python matches up against pl/pgSQL, but

Re: [HACKERS] Write cache

2004-01-27 Thread Tom Lane
Andreas Pflug [EMAIL PROTECTED] writes: This would be the first time a SCSI disk lies about its write caching. There are plenty of low-cost (i.e. IDE) disks out there having a hidden write cache, but AFAIK a generic SCSI tool is usable to enable/disable the write cache. A SCSI disk

Re: 7.5 change documentation (was Re: [HACKERS] cache control?)

2004-01-27 Thread Simon Riggs
Bruce Momjian wrote Tom Lane wrote: Simon Riggs [EMAIL PROTECTED] writes: If the TODO-list-with-dash isn't the correct place to have looked, is there another list of committed changes for the next release? We tend to rely on the CVS commit logs as the definitive source. You can

Re: [HACKERS] 7.5 change documentation

2004-01-27 Thread Simon Riggs
POSTGRESQL: Summary of Changes since last release (7.4.1) -- 26 Jan 2004 This is a summary of most changes since code versions marked 7_4_1, rather than a weekly news bulletin, a summary of desired future items, or the definitive list of

Re: [HACKERS] Disaster!

2004-01-27 Thread Gaetano Mendola
Tom Lane wrote: Okay ... Chris was kind enough to let me examine the WAL logs and postmaster stderr log for his recent problem, and I believe that I have now achieved a full understanding of what happened. The true bug is indeed somewhere else than slru.c, and we would not have found it if

[HACKERS] postgresql.org reverse lookup fail

2004-01-27 Thread Tatsuo Ishii
Hi, We have serious problems past 4 days in receiving mail lists from postgresql.org. Subscribers living in the jp domain are receiving via a relay host named powergres.sra.co.jp (this is an authorized relay host for jp domain, and this configuration has been approved by Marc). After checking

Re: [HACKERS] postgresql.org reverse lookup fail

2004-01-27 Thread Marc G. Fournier
looking into it ... seems somewhere upstream changed their DNS config to not pull our reverse information ... just had someone else point it out to me as well :( I've removed the jp relay temporarily, since it is failing, and hope to have it resolved within the next 24hrs ... Thanks ... On

Re: [HACKERS] Question about indexes

2004-01-27 Thread Greg Stark
Tom Lane [EMAIL PROTECTED] writes: I don't think so. You are thinking only of exact-equality queries --- as soon as the WHERE clause describes a range of index entries, the readout wouldn't be sorted by ctid anyway. But then even bitmap indexes would fail in that way too, or at least have a

Re: [HACKERS] postgresql.org reverse lookup fail

2004-01-27 Thread Tatsuo Ishii
Hi, We have serious problems past 4 days in receiving mail lists from postgresql.org. Subscribers living in the jp domain are receiving via a relay host named powergres.sra.co.jp (this is an authorized relay host for jp domain, and this configuration has been approved by Marc). After

Re: [HACKERS] postgresql.org reverse lookup fail

2004-01-27 Thread Gavin Sherry
It seems reverse look up for svr1.postgresql.org fails. Due to this sendmail denies to receive mails relayed by svr1.postgresql.org (200.46.204.71). Jan 25 04:09:55 powergres sendmail[9622]: i0OJ9qY09622: ruleset=check_rcpt, arg1=[EMAIL PROTECTED],

Re: [HACKERS] Question about indexes

2004-01-27 Thread Tom Lane
Greg Stark [EMAIL PROTECTED] writes: Combining indexes via a bitmap intermediate step (which is not really the same thing as bitmap indexes, IIUC) seems like a more robust approach than relying on the index entries to be in ctid order. I would see that as the next step, But it seems to me it