Re: [HACKERS] recent --with-libxml support

2006-12-23 Thread Jeremy Drake
On Sat, 23 Dec 2006, Tom Lane wrote: > Ah-hah, I've sussed it. sqlchar_to_unicode() calls the > mb2wchar_with_len converters, which are defined to return a *null > terminated* pg_wchar string. So even if you only ask for the conversion > of a single character, you need a 2-pg_wchar array to hold

Re: [HACKERS] quick review

2006-12-23 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Dec 18, 2006 at 03:47:42AM +0100, Molle Bestefich wrote: [...] > Simply put, a tool with just a single button named "recover > all the data that you can" is by far the best solution in so > many cases. Minimal fuzz, minimal downtime, minimal

[HACKERS] Loose ends in PG XML patch

2006-12-23 Thread Tom Lane
I cleaned up some things I didn't like in the recent XML patch, but there are several loose ends that I lack the energy to tackle now: * Isn't mapping XMLSERIALIZE to a cast completely wrong? Aside from the issue already noted in the code that it won't reverse-list correctly, this loses the DOCUM

Re: [HACKERS] recent --with-libxml support

2006-12-23 Thread Tom Lane
Jeremy Drake <[EMAIL PROTECTED]> writes: > On Fri, 22 Dec 2006, Tom Lane wrote: >> Jeremy Drake <[EMAIL PROTECTED]> writes: >>> As seen, I needed to add an include dir for configure to pass. However, >>> make check fails now with the backend crashing. This can be seen in the >>> buildfarm results

Re: [HACKERS] libxml on unixware

2006-12-23 Thread Andrew Dunstan
Tom Lane wrote: > ohp@pyrenet.fr writes: >> In order to send a back trace, I recompiled with --enable-debug >> --enable-cassert and regression test is ok! > > Oh, that's interesting! Try it with just --enable-debug. > Is this one of those compilers where turning debug on turns off optimisation?

Re: [HACKERS] libxml on unixware

2006-12-23 Thread Tom Lane
ohp@pyrenet.fr writes: > In order to send a back trace, I recompiled with --enable-debug > --enable-cassert and regression test is ok! Oh, that's interesting! Try it with just --enable-debug. regards, tom lane ---(end of broadcast)

Re: [HACKERS] Strange pgsql crash on MacOSX

2006-12-23 Thread Tom Lane
Shane Ambler <[EMAIL PROTECTED]> writes: > I just found out the problem. > psql_history - I had tried to copy from a text file earlier that was > utf8 and came up with some errors, I guess these got into the history > file and stuffed it up. Hm, so the question is: is it our bug or Apple's? If

[HACKERS] libxml on unixware

2006-12-23 Thread ohp
Hi everyone I'm trying to test libxml on UnixWare and came with this problem: Backend crashes with the follolwing log during make check when libxml is enabled. parallel group (13 tests): text boolean name char int2 varchar int8 float8 oid float4 int4 bit numeric boolean ... o

[HACKERS] cannot add to postgresql project my own source files

2006-12-23 Thread dakotali kasap
Hi, I want to write a function that takes the raw parsetree and rewrites it according to my rules, then produce new raw parsetrees. I will call this function inside backend/tcop/postgres.c . I wrote an header file called my_rewriter.h and include this inside postgres.c. my_writer.h looks like:

Re: [HACKERS] Strange pgsql crash on MacOSX

2006-12-23 Thread Shane Ambler
Shane Ambler wrote: Tom Lane wrote: Shane Ambler <[EMAIL PROTECTED]> writes: postgres=# \q psql(24931) malloc: *** error for object 0x180a800: incorrect checksum for freed object - object was probably modified after being freed, break at szone_error to debug psql(24931) malloc: *** set a breakp

Re: [HACKERS] Interface for pg_autovacuum

2006-12-23 Thread Dave Page
Robert Treat wrote: Dave: How does PgAdmin handle setting table-specific autovacuum parameters? (Does it?) Yes, it adds/removes/edits rows in pg_autovacuum as required. We do this in phppgadmin too, although I also added a screen that show alist of entries with schema and table names (rather