Re: [HACKERS] [GENERAL] Performance while loading data and indexing

2002-09-26 Thread Martijn van Oosterhout
with solutions to problems that will occur in near future.. ;-) 17 hours! Ouch. Either way, you should be able to do much better. Hope this helps, -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ There are 10 kinds of people in the world, those that can do binary arithmetic

Re: [GENERAL] [HACKERS] Performance while loading data and indexing

2002-09-26 Thread Martijn van Oosterhout
can only be used left to right. This is where a single multicolumn index differs from multiple indexes of different columns. Have you used EXPLAIN ANALYSE to determine whether your indexes are being used optimally? -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog

Re: [HACKERS] Rép

2002-10-08 Thread Martijn van Oosterhout
the log: ... These docs seem to corrobrate this. So, with Pg, if you backup your db every night with pg_dump, and your server crashes during the day, you will loose up to one day of work. I've never lost any data with postgres, even if it's crashed, even without WAL. -- Martijn van Oosterhout

Re: [HACKERS] [GENERAL] Large databases, performance

2002-10-08 Thread Martijn van Oosterhout
in the length are already used (IIRC) for other things making it a bit more tricky. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ There are 10 kinds of people in the world, those that can do binary arithmetic and those that can't. ---(end

Re: [HACKERS] [pgsql-performance] [GENERAL] Large databases, performance

2002-10-08 Thread Martijn van Oosterhout
. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ There are 10 kinds of people in the world, those that can do binary arithmetic and those that can't. ---(end of broadcast)--- TIP 6: Have you searched our list archives? http

Re: [HACKERS] [GENERAL] I cant find it or I'm just lazy ?

2003-02-24 Thread Martijn van Oosterhout
declare a cursor it doesn't run the query yet. You have to tell it to run the query before it can tell you how many rows it is. I think the command is MOVE. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ Support bacteria! They're the only culture some people have

Re: [HACKERS] On-Disk Tuple Size

2002-04-20 Thread Martijn van Oosterhout
just be filled in while reading. Unless I'm misunderstanding its purpose. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ Canada, Mexico, and Australia form the Axis of Nations That Are Actually Quite Nice But Secretly Have Nasty Thoughts About America

[HACKERS] Documentation on page files

2002-04-20 Thread Martijn van Oosterhout
the situation? I've been looking into it a bit recently so I think I may be able to whip something useful up. Thanks in advance, -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ Canada, Mexico, and Australia form the Axis of Nations That Are Actually Quite Nice

Re: [HACKERS] Documentation on page files

2002-04-21 Thread Martijn van Oosterhout
On Sun, Apr 21, 2002 at 03:46:07PM +0900, Curt Sampson wrote: On Sat, 20 Apr 2002, Tom Lane wrote: Martijn van Oosterhout [EMAIL PROTECTED] writes: 2. If not, would patches be accepted to correct the situation? Go for it. Yes, please! I'd be happy to review and updated version. Ok

Re: [HACKERS] Documentation on page files

2002-04-22 Thread Martijn van Oosterhout
On Mon, Apr 22, 2002 at 11:14:36AM -0500, Ross J. Reedstrom wrote: On Sun, Apr 21, 2002 at 07:28:32PM +1000, Martijn van Oosterhout wrote: http://svana.org/kleptog/pgsql/page.sgml.txt I don't know whatever SGML format this is using, so the layout is not great, but the information

Re: [HACKERS] Documentation on page files

2002-04-23 Thread Martijn van Oosterhout
On Tue, Apr 23, 2002 at 09:15:22AM +0200, Hannu Krosing wrote: On Tue, 2002-04-23 at 01:29, Martijn van Oosterhout wrote: The dumping is more of an extra, the original idea was to check for errors in the datafiles. Hence the working name of pgfsck. At the moment the dumping dumps only

[HACKERS] Table checking/dumping program

2002-04-24 Thread Martijn van Oosterhout
versions have a strange layout. You may get many harmless warnings about the formats of pg_class, pg_attribute and/or pg_type. Most of these are basically because I don't know how they work, but with a bit of work some of these should be fixable. Have a nice day, -- Martijn van Oosterhout [EMAIL

Re: [GENERAL] [HACKERS] Linux Largefile Support In Postgresql RPMS

2002-08-12 Thread Martijn van Oosterhout
to 2TB (2^32 x 512bytes), probably much more. What about the BSDs? XFS? etc -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ There are 10 kinds of people in the world, those that can do binary arithmetic and those that can't. ---(end of broadcast

Re: [GENERAL] [HACKERS] Linux Largefile Support In Postgresql RPMS

2002-08-13 Thread Martijn van Oosterhout
in a year or two. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ There are 10 kinds of people in the world, those that can do binary arithmetic and those that can't. ---(end of broadcast)--- TIP 2: you can get off all

Re: [HACKERS] Re: [PATCH] To remove EXTEND INDEX

2001-07-13 Thread Martijn van Oosterhout
, not the patch itself. Sorry for the confusion. Tom actually suggested doing this at the same time as re-enabling partial indices but I favoured a separate patch considering the large number of scattered changes. Anyway, is there a concensus, or shall I forget the whole thing? -- Martijn van

Re: [HACKERS] Re: [PATCH] To remove EXTEND INDEX

2001-07-13 Thread Martijn van Oosterhout
. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ It would be nice if someone came up with a certification system that actually separated those who can barely regurgitate what they crammed over the last few weeks from those who command secret ninja networking powers

[HACKERS] Radical suggestion for plan executor?

2001-07-13 Thread Martijn van Oosterhout
the switch with a function call. Any thoughts? -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ It would be nice if someone came up with a certification system that actually separated those who can barely regurgitate what they crammed over the last few weeks from those who command

[HACKERS] Determining return type of polymorphic function

2005-08-11 Thread Martijn van Oosterhout
' LANGUAGE 'C'; How can I determine I'm supposed to return a mytype? I'm running 7.4 if it matters... Thanks in advance, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5

Re: [HACKERS] Determining return type of polymorphic function

2005-08-11 Thread Martijn van Oosterhout
[Please CC replies, thanks] On Thu, Aug 11, 2005 at 02:17:30PM -0400, Tom Lane wrote: Martijn van Oosterhout kleptog@svana.org writes: What I'm trying to do now is use fcinfo-flinfo-fn_oid to lookup pg_proc and get the return type from there, but something tells me there must be an easier

Re: [HACKERS] Determining return type of polymorphic function

2005-08-12 Thread Martijn van Oosterhout
arguments except C. It can be added if you think it's worth regression testing. Unless there are other comments I'll post this to pgsql-patches later... Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration

Re: [HACKERS] [PATCH] Determining return type of polymorphic function

2005-08-12 Thread Martijn van Oosterhout
Forgot to attach it, oops. On Fri, Aug 12, 2005 at 09:56:47AM +0200, Martijn van Oosterhout wrote: Ok, here's a patch (with documentation update). I checked the regression tests (looked over, not run) but nothing there appears to test this anyway. I looked through all the datatype input

[HACKERS] SPI: ERROR: no snapshot has been set

2005-08-13 Thread Martijn van Oosterhout
to detect if a snapshot has been started and creating one if there hasn't. I've seen the snapshot related functions but I don't feel comfortable sticking them in my type input function just to fix this. Is it safe? Thanks in advance, -- Martijn van Oosterhout kleptog@svana.org http

Re: [HACKERS] SPI: ERROR: no snapshot has been set

2005-08-13 Thread Martijn van Oosterhout
On Sat, Aug 13, 2005 at 12:36:42PM -0400, Tom Lane wrote: Martijn van Oosterhout kleptog@svana.org writes: - Is there a way to detect if a snapshot has been started and creating one if there hasn't. I've seen the snapshot related functions but I don't feel comfortable sticking them in my

Re: [HACKERS] SPI: ERROR: no snapshot has been set

2005-08-17 Thread Martijn van Oosterhout
at 03:59:56PM +0200, Martijn van Oosterhout wrote: Good guess, I am inside a type input function trying to use SPI. My questions are: -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5

[HACKERS] Typmod for user-defined types

2005-08-27 Thread Martijn van Oosterhout
function be accepted? Have a nice day, [1] http://archives.postgresql.org/pgsql-hackers/2004-06/msg00923.php [2] http://archives.postgresql.org/pgsql-hackers/2004-06/msg00932.php -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95

Re: [HACKERS] Typmod for user-defined types

2005-08-28 Thread Martijn van Oosterhout
a nice day, On Sat, Aug 27, 2005 at 11:09:09AM -0400, Tom Lane wrote: Martijn van Oosterhout kleptog@svana.org writes: Tom Lanes patch[2] looks like it may work, but would a mechanism to allow user-defined types to have a typmod function be accepted? [2] http://archives.postgresql.org/pgsql

[HACKERS] Simple tester for MVCC in PostgreSQL

2005-08-29 Thread Martijn van Oosterhout
set value = value + 10 where grp = 'a' 2e update t set value = value + 10 where grp = 'a' 1 commit 2 wait 2 abort 1 drop table t -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5

[HACKERS] On hardcoded type aliases and typmod for user types

2005-08-31 Thread Martijn van Oosterhout
this be allowed? Should aliasing for DEC and DECIMAL - NUMERIC be done for user-defined types? Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work

Re: [HACKERS] On hardcoded type aliases and typmod for user types

2005-08-31 Thread Martijn van Oosterhout
the easy way and implement the slightly more difficult if it turns out the be necessary. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work

Re: [HACKERS] On hardcoded type aliases and typmod for user types

2005-08-31 Thread Martijn van Oosterhout
. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do the other 95% so you can sue them

Re: [HACKERS] On hardcoded type aliases and typmod for user types

2005-09-01 Thread Martijn van Oosterhout
, I fear. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do the other 95% so you can sue them

Re: [HACKERS] On hardcoded type aliases and typmod for user types

2005-09-01 Thread Martijn van Oosterhout
and should they default to typmod -1? Currently '()' is not even accepted. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting

Re: [HACKERS] On hardcoded type aliases and typmod for user types

2005-09-01 Thread Martijn van Oosterhout
confused by some of the things they'd added. Am I the only one? -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do

Re: [HACKERS] On hardcoded type aliases and typmod for user types

2005-09-01 Thread Martijn van Oosterhout
On Thu, Sep 01, 2005 at 08:50:27AM -0400, Tom Lane wrote: Martijn van Oosterhout kleptog@svana.org writes: Simply pass the (Node*) from the parser and let the function sort it out itself. Except now they have to be written in C. Is this unreasonable, Nope. You're not going to be writing

[HACKERS] Using multi-locale support in glibc

2005-09-01 Thread Martijn van Oosterhout
- test1 Tést1 Tëst1 Test2 tèst2 (5 rows) -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do the other 95

Re: [HACKERS] Using multi-locale support in glibc

2005-09-01 Thread Martijn van Oosterhout
On Thu, Sep 01, 2005 at 01:46:00PM -0400, Tom Lane wrote: Martijn van Oosterhout kleptog@svana.org writes: 1. Is something supported by glibc usable for us (re portability to non-glibc platforms)? Nope. Sorry. Do we have some platforms that don't have any multi-language support? I mean

[HACKERS] Proof of concept COLLATE support with patch

2005-09-02 Thread Martijn van Oosterhout
Method finding encoding for nl_langinfo_l ??? locale strcoll with locale parameter strcoll_l _strcoll_l -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5

Re: [HACKERS] Proof of concept COLLATE support with patch

2005-09-02 Thread Martijn van Oosterhout
On Fri, Sep 02, 2005 at 03:04:20PM +0200, Martijn van Oosterhout wrote: Supports any glibc platform and possibly Win32. MacOS X [1] supports this also apparently. And for glibc it appears to have been accepted as part of the API since 2.3.2 and formally accepted into LSB3.0. Win32 claims to have

Re: [HACKERS] Proof of concept COLLATE support with patch

2005-09-02 Thread Martijn van Oosterhout
(s1, s2) const char *s1, *s2; { _DIAGASSERT(s1 != NULL); _DIAGASSERT(s2 != NULL); /* LC_COLLATE is unimplemented, hence always C */ return (strcmp(s1, s2)); } -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5

Locale implementation questions (was: [HACKERS] Proof of concept COLLATE support with patch)

2005-09-03 Thread Martijn van Oosterhout
if there could be some real movement. Have a nice weekend, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do the other 95% so

Re: Locale implementation questions (was: [HACKERS] Proof of concept COLLATE support with patch)

2005-09-04 Thread Martijn van Oosterhout
van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do the other 95% so you can sue them. pgpY0njaqfLIH.pgp Description: PGP

Re: [HACKERS] Locale implementation questions

2005-09-04 Thread Martijn van Oosterhout
://icu.sourceforge.net/) will end up obsoleting us. Nobody (in free-software anyway) uses it yet, but eventually it may be viable to require that to allow system independant locales. -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95

[HACKERS] Install Darwin's locale library on your system :)

2005-09-05 Thread Martijn van Oosterhout
close. From here on I'm going to work on COLLATE for systems that support xlocale, with an eye on ICU if/when it becomes standard enough. Download: http://svana.org/kleptog/pgsql/dummylocale.tar.gz Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n

[HACKERS] Mysteriously lost values in nodes

2005-09-06 Thread Martijn van Oosterhout
but rather than just changing them all, is there a particular phase where these changes are made that I should be looking at? Thanks in advance, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool

Re: [HACKERS] Simple tester for MVCC in PostgreSQL

2005-09-06 Thread Martijn van Oosterhout
On Tue, Sep 06, 2005 at 03:51:41PM +, Matt Miller wrote: On Tue, 2005-08-30 at 00:56 +0200, Martijn van Oosterhout wrote: http://svana.org/kleptog/pgsql/mvcctest.tar.gz I've started using it in some simple cases and it seems to be a good tool. The feature set looks to me to be a pretty

Re: [HACKERS] Mysteriously lost values in nodes

2005-09-06 Thread Martijn van Oosterhout
think operators might have some more. Personally, when I want to add a field to a node, I grep for every reference to one or two of the existing fields to make sure I've found all the places I need to touch. So there's no shortcut, I'll remember that :) Thanks for the help, -- Martijn van

[HACKERS] Suggestion to simplify installation of external modules

2005-09-08 Thread Martijn van Oosterhout
://svana.org/kleptog/pgsql/sql2install.pl -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do the other 95% so you can

Re: [HACKERS] Case insensitive indexing in posgtres?

2005-09-09 Thread Martijn van Oosterhout
://gborg.postgresql.org/project/citext/projdisplay.php -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do the other 95% so you

Re: [HACKERS] random system table corruption ...

2005-09-11 Thread Martijn van Oosterhout
catalog with an old one... -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do the other 95% so you can sue them

Re: [HACKERS] -fPIC

2005-09-12 Thread Martijn van Oosterhout
: { global: pg_finfo_* other exported symbols local: * } Whether it's enough... For people who want to know the gory details, read this (by Ulrich Drepper). http://people.redhat.com/drepper/dsohowto.pdf -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n

Re: [HACKERS] Hard drive failure leads to corrupt db

2005-09-13 Thread Martijn van Oosterhout
, Michael. ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5

Re: [HACKERS] Spinlocks, yet again: analysis and proposed patches

2005-09-14 Thread Martijn van Oosterhout
of the issues don't apply. My main concern is how you even detect the number of processors in a portable way... Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5

Re: [HACKERS] Constraint Type Coercion issue?

2005-09-14 Thread Martijn van Oosterhout
class... Definitly 8.2 stuff, and it's not simple stuff either... -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else

Re: [HACKERS] Constraint Type Coercion issue?

2005-09-14 Thread Martijn van Oosterhout
. It's not easy, like you say, there are a lot of places where an extra argument would need to be passed... Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work

Re: [HACKERS] Constraint Type Coercion issue?

2005-09-15 Thread Martijn van Oosterhout
bit to a and b before passing it to the '' operator. An index can only support one collation at a time also. I don't think there is an easy way out... [1] http://svana.org/kleptog/pgsql/taggedtypes.html -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius

[HACKERS] Does anybody use ORDER BY x USING y?

2005-09-18 Thread Martijn van Oosterhout
the operator after USING to be part of an operator class? Have a nice day, [1] http://www.postgresql.org/docs/8.0/interactive/queries-order.html [2] http://www.postgresql.org/docs/8.0/interactive/sql-select.html -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n

Re: [HACKERS] Does anybody use ORDER BY x USING y?

2005-09-18 Thread Martijn van Oosterhout
. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do the other 95% so you can sue them

Re: [HACKERS] Does anybody use ORDER BY x USING y?

2005-09-18 Thread Martijn van Oosterhout
was, what was the solution he was referring to using the USING clause? [1] http://lafstern.org/matt/col2_new.pdf -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work

Re: [HACKERS] Does anybody use ORDER BY x USING y?

2005-09-18 Thread Martijn van Oosterhout
''. That's my thought. However, the code doesn't seem to restrict you to that so I was wondering if there was any other use out there that we should consider supporting... -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration

Re: [HACKERS] Does anybody use ORDER BY x USING y?

2005-09-19 Thread Martijn van Oosterhout
to dealt with somewhere else, given that it's unrelated to order. This is going way out of spec though... -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting

Re: [HACKERS] Does anybody use ORDER BY x USING y?

2005-09-19 Thread Martijn van Oosterhout
that usable operators have two arguments and IS NULL isn't really an operator in the PostgreSQL sense and doesn't have two arguments either. *If* that can be fixed, then we can be more flexible. But if it were easy it would have been done long ago... Have a nice day, -- Martijn van Oosterhout

Re: [HACKERS] Does anybody use ORDER BY x USING y?

2005-09-20 Thread Martijn van Oosterhout
much discussion on collation and ordering I'm going to take from this discussion that there is no use for the USING clause with operators not in an operator class and that if this changes we won't be seriously inconveniencing anybody. Have a nice day, -- Martijn van Oosterhout kleptog

Re: [HACKERS] passing parameters to CREATE INDEX

2005-09-20 Thread Martijn van Oosterhout
by the backend and passed each call? At the moment there is some discussion on changes to the index interface so now is the time to ask for what you want... -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent

Re: [HACKERS] passing parameters to CREATE INDEX

2005-09-21 Thread Martijn van Oosterhout
it's needed for to know if that's a problem... So even if an index can store the parameter itself, there would need to be a way for pg_dump to extract it. -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent

Re: [HACKERS] Table Partitioning is in 8.1

2005-09-21 Thread Martijn van Oosterhout
will have a partitioning system based upon it. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do

Re: [HACKERS] Releasing memory during External sorting?

2005-09-23 Thread Martijn van Oosterhout
into issues with data interleaved, meaning not much to give back to the OS... -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone

Re: [HACKERS] stack depth limit exceeded problem.

2005-09-24 Thread Martijn van Oosterhout
? Tricky issues... -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do the other 95% so you can sue them

Re: [HACKERS] stack depth limit exceeded problem.

2005-09-24 Thread Martijn van Oosterhout
postgres with a new stack; that preserves existing semantics. Signals are the only way the kernel can pass control unexpectedly so if you handle those, postgres would never know it's threaded. I do wonder if there are any other assumptions made... Have a nice day, -- Martijn van Oosterhout kleptog

Re: [HACKERS] stack depth limit exceeded problem.

2005-09-24 Thread Martijn van Oosterhout
On Sat, Sep 24, 2005 at 02:38:35PM +0200, Thomas Hallgren wrote: Martijn van Oosterhout wrote: Linux has sigaltstack so you can catch the stack overflow signal (and other signals obviously, but that's its main use), but it's not terribly portable. I rely on the signal handler

[HACKERS] \x output blowing up

2005-09-24 Thread Martijn van Oosterhout
* from pg_proc and there are no multiple characters there AFAIK. I can't see it though. Hope this helps, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work

Re: [HACKERS] \x output blowing up

2005-09-24 Thread Martijn van Oosterhout
On Sat, Sep 24, 2005 at 11:45:08PM +0200, Martijn van Oosterhout wrote: Hi, On CVS tip, whenever I do \x output, it dies with an internal error in glibc on free. If you run it under valgrind, it complains about these lines of code: snip Ok, I worked out the direct cause, pg_wcswidth only

Re: [HACKERS] \x output blowing up

2005-09-25 Thread Martijn van Oosterhout
the only case psql handles differently. I've attached a patch which fixes it. With a bit more rearrangement you could probably simplify it a bit but this works. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95

[HACKERS] Questions about proper newline handling in psql output

2005-09-25 Thread Martijn van Oosterhout
-- \x08 (1 row) -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do the other 95% so you can sue them

Re: [HACKERS] expected authentication request from server, but received...

2005-09-26 Thread Martijn van Oosterhout
earlier than that. If you really need this to work, I suggest pulling the libpq from that release (CVS or tarball) or slightly later and installing that on the new machines. But you should upgrade, 6.4 hasn't had support for year, who know how many bugs... -- Martijn van Oosterhout kleptog

Re: [HACKERS] Questions about proper newline handling in psql output

2005-09-27 Thread Martijn van Oosterhout
it since whatever displays the HTML will take care of alignment. Same for troff and CSV. Straight aligned text output is the only one we care about AFAICS (and the only one that requires work to make it happen). Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org

Re: [HACKERS] Questions about proper newline handling in psql output

2005-09-27 Thread Martijn van Oosterhout
I made up. (Real data has a habit of showing weaknesses far better than things you dream up). But I'll give it a shot. -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work

Re: [HACKERS] effective SELECT from child tables

2005-09-28 Thread Martijn van Oosterhout
, it is a fairly unusual feature. -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do the other 95% so you can sue them

Re: [HACKERS] [PATCHES] Proposed patch for sequence-renaming problems

2005-09-29 Thread Martijn van Oosterhout
missing something? Isn't this what adddepend was for? I can beleive there are version dependancies here... -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work

Re: [HACKERS] Socket problem using beta2 on Windows-XP

2005-09-29 Thread Martijn van Oosterhout
: error code 10038 That's from postmaster.c:write_inheritable_socket(). Error 10038 is WSAENOTSOCK. Very odd, time to get out the debugger? Get a backtrace at least. Hope this helps, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95

Re: [HACKERS] Found small issue with OUT params

2005-09-30 Thread Martijn van Oosterhout
need to. http://www.postgresql.org/docs/8.0/interactive/xfunc-c.html#AEN30497 Now, you could fudge the parser to automatically alter the name of the value in the function but I'm have no idea how hard that would be... -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent

Re: [HACKERS] effective SELECT from child tables

2005-10-01 Thread Martijn van Oosterhout
(1). The latter is variable length and can store any character per current encoding, hence the variable length. char on the other hand is a one byte (presumably ASCII) character. It's used mainly in the system catalogs... -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog

Re: [HACKERS] effective SELECT from child tables

2005-10-01 Thread Martijn van Oosterhout
be a general solution to the problem. This is what Constraint Exclusion does. It uses CHECK constraints on a table to filter out tables that obviously don't apply to a query. It's just the the specific case of tableoid = XXX is not supported right now. Have a nice day, -- Martijn van Oosterhout

Re: [HACKERS] [PERFORM] A Better External Sort?

2005-10-01 Thread Martijn van Oosterhout
is probably CPU bound more than anything else. So, I don't think physical I/O is the problem. It's something further up the call tree. I wouldn't be surprised at all it it had to do with the creation and destruction of tuples. The cost of comparing tuples should not be underestimated. -- Martijn van

Re: [HACKERS] effective SELECT from child tables

2005-10-01 Thread Martijn van Oosterhout
the project_id. -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do the other 95% so you can sue them

Re: [HACKERS] [PERFORM] A Better External Sort?

2005-10-01 Thread Martijn van Oosterhout
0.97505.83 6.17 23711355 0.00 0.00 AllocSetFreeIndex 0.84511.19 5.36 5920596 0.00 0.00 LogicalTapeWrite 0.84516.51 5.33 2960314 0.00 0.00 slot_deform_tuple -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n

Re: [HACKERS] [PERFORM] A Better External Sort?

2005-10-02 Thread Martijn van Oosterhout
On Sat, Oct 01, 2005 at 11:26:07PM -0400, Tom Lane wrote: Martijn van Oosterhout kleptog@svana.org writes: Anyway, to bring some real info I just profiled PostgreSQL 8.1beta doing an index create on a 2960296 row table (3 columns, table size 317MB). 3 columns in the index you mean? What

Re: [HACKERS] effective SELECT from child tables

2005-10-02 Thread Martijn van Oosterhout
for new values but not for old ones. That wouldn't work if the database starts adding values randomly, depending on when they are read... Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent

Re: [HACKERS] Socket problem using beta2 on Windows-XP

2005-10-02 Thread Martijn van Oosterhout
. The documentation isn't totally clear about this. Yet the error thrown should terminate the process, yet it obviously isn't. Very odd. Any Windows programmers with ideas? -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95

Re: [HACKERS] [PERFORM] A Better External Sort?

2005-10-02 Thread Martijn van Oosterhout
. Basically, I recommend adding -Winline -finline-limit-1500 to the default build while we discuss other options. comparetup_index_fastbyval4 patch attached per example. -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration

Re: [HACKERS] effective SELECT from child tables

2005-10-02 Thread Martijn van Oosterhout
default which can be changed anytime? Seems messy, though possible... Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting

Re: [HACKERS] PG Killed by OOM Condition

2005-10-03 Thread Martijn van Oosterhout
usage. Besides, seems to me it should be an system admisitrator descision. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting

Re: [HACKERS] Tuning current tuplesort external sort code for 8.2

2005-10-03 Thread Martijn van Oosterhout
day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do the other 95% so you can sue them. pgpWTkP5cRja6.pgp

Re: [HACKERS] PG Killed by OOM Condition

2005-10-04 Thread Martijn van Oosterhout
who to kill. Sometimes you just get unlucky... It's always killed the right process for me (Mozilla derivative leaked masses of memory over long period). -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent

Re: [HACKERS] Tuning current tuplesort external sort code for 8.2

2005-10-04 Thread Martijn van Oosterhout
On Tue, Oct 04, 2005 at 12:37:51AM +0100, Simon Riggs wrote: On Mon, 2005-10-03 at 23:25 +0200, Martijn van Oosterhout wrote: Please note: if inlineApplySortFunction() is actually inlined (it isn't by default) Can you explain your last post some more. Thats not what I get. The inline

Re: [HACKERS] [PERFORM] A Better External Sort?

2005-10-04 Thread Martijn van Oosterhout
van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do the other 95% so you can sue them. pgppgbguCvZK1.pgp Description: PGP

Re: [HACKERS] Tuning current tuplesort external sort code for 8.2

2005-10-04 Thread Martijn van Oosterhout
On Tue, Oct 04, 2005 at 11:55:58AM +0200, Martijn van Oosterhout wrote: It goes in to say that the limit is 1 for gcc 2.95, but if you examine the manual for gcc 3.3 it has the limit at 600. So it's entirely possible that at the time the person wrote that code, it *was* being inlined

Re: [HACKERS] memory bug debugging

2005-10-04 Thread Martijn van Oosterhout
and CLOBBER_FREED_MEMORY) which can help find leaks. Valgrind works too, with a bit of attention. I was going to add some directives to allow Valgrind to handle PostgreSQL's memory allocator, but have got there yet. -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5

Re: [HACKERS] [PERFORM] A Better External Sort?

2005-10-04 Thread Martijn van Oosterhout
a nice round number, 1500. Ugh, that's for -O2, for -O3 and above it needs to be 4100 to work. Maybe we should go for 5000 or so. I'm using: gcc (GCC) 3.3.5 (Debian 1:3.3.5-13) Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5

Re: [HACKERS] [PERFORM] A Better External Sort?

2005-10-04 Thread Martijn van Oosterhout
On Tue, Oct 04, 2005 at 10:06:24AM -0400, Tom Lane wrote: Martijn van Oosterhout kleptog@svana.org writes: I'm using: gcc (GCC) 3.3.5 (Debian 1:3.3.5-13) I don't know what the units of this number are, but it's apparently far too gcc-version-dependent to consider putting into our build

Re: [HACKERS] [PERFORM] A Better External Sort?

2005-10-04 Thread Martijn van Oosterhout
whether we want to go down the path of hinting to gcc which size will be the most common. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work

  1   2   3   4   5   6   7   8   9   10   >