Re: [HACKERS] /contrib/retep to gborg

2002-10-18 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > I think we should move /contrib/retep to gborg. It is 400k and isn't > anywhere near our core functionality. I will add to TODO: > Move /contrib/retep to gborg > Can I move this during beta? I don't think so. Why not? Feature addition during be

Re: [HACKERS] pg_dump and large files - is this a problem?

2002-10-18 Thread Philip Warner
I have put the latest patch at: http://downloads.rhyme.com.au/postgresql/pg_dump/ along with two dump files of the regression DB, one with 4 byte and the other with 8 byte offsets. I can read/restore each from the other, so it looks pretty good. Once the endianness is tested, we should be OK

Re: [HACKERS] pg_dump and large files - is this a problem?

2002-10-18 Thread Philip Warner
At 12:07 AM 19/10/2002 +0200, Peter Eisentraut wrote: Any old machine has a 4-byte off_t if you configure with --disable-largefile. Thanks - done. I just dumped to a custom backup file, then dumped it do SQL, and compared each version (V7.2.1, 8 byte & 4 byte offsets), and they all looked OK.

[HACKERS] Design decision curiosity

2002-10-18 Thread Dann Corbit
I am curious as to why it is necessary to add PL/pgSQL as a language instead of including it by default. Is it to save space on small systems or??? Since the code necessary PL/pgSQL is very small, it does not seem like there would be much savings. I imagine that there is occasionally some confusi

Re: [HACKERS] Design decision curiosity

2002-10-18 Thread Tom Lane
"Dann Corbit" <[EMAIL PROTECTED]> writes: > I am curious as to why it is necessary to add PL/pgSQL as a language > instead of including it by default. I believe security was one of the reasons. regards, tom lane ---(end of broadcast)---

Re: [HACKERS] Postgresql and multithreading

2002-10-18 Thread Anuradha Ratnaweera
On Fri, Oct 18, 2002 at 10:28:38AM -0400, Tom Lane wrote: > Greg Copeland <[EMAIL PROTECTED]> writes: > > On Thu, 2002-10-17 at 22:20, Tom Lane wrote: > >> Simple: respond to 'em all with a one-line answer: "convince us why we > >> should use it". The burden of proof always seems to fall on the wr

Re: Antw: Re: [HACKERS] Postgresql and multithreading

2002-10-18 Thread Shridhar Daithankar
On 18 Oct 2002 at 18:10, Ulrich Neumann wrote: > Marc, > > not only the global variables are a problem. PostgreSQL doesn't clean > up > all the memory before a process terminates and you must deal with > signals between threads. OK, first of all let me say this. I am interested in seeing postgre

Re: [HACKERS] ECPG and bison

2002-10-18 Thread Marc G. Fournier
going to be dealing with this this weekend ... Bruce already asked me as well, just been busy during the week, so had to defer to the weekend ... if its not in place by tomorrow around, so, 8pm GMT,please feel free to email-nag me :) On Fri, 18 Oct 2002, Michael Meskes wrote: > Could anyone ple

Re: [HACKERS] autocommit vs TRUNCATE et al

2002-10-18 Thread Gavin Sherry
On Fri, 18 Oct 2002, Mike Mascari wrote: > Gavin Sherry wrote: > > On Fri, 18 Oct 2002, Tom Lane wrote: > > > > > >>Anyone see a way out of this catch-22? If not, which is the least > >>bad alternative? > > > > > > Ultimately, fix TRUNCATE to be transaction safe. This is non-trivial, > > I kn

Re: [HACKERS] ECPG and bison

2002-10-18 Thread Larry Rosenman
On Fri, 2002-10-18 at 22:03, Marc G. Fournier wrote: > On Fri, 18 Oct 2002, Tom Lane wrote: > > > Bruce Momjian <[EMAIL PROTECTED]> writes: > > > Larry Rosenman wrote: > > >> Looks like threre is a 1.75 out (based on a FreeBSD PR I just saw fly > > >> by). > > > > > I can confirm that: > > > htt

Re: [HACKERS] ECPG and bison

2002-10-18 Thread Marc G. Fournier
On Fri, 18 Oct 2002, Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > Larry Rosenman wrote: > >> Looks like threre is a 1.75 out (based on a FreeBSD PR I just saw fly > >> by). > > > I can confirm that: > > http://ftp.gnu.org/gnu/bison/ > > Attached is the Changelog since 1.50.

[HACKERS] /contrib/retep to gborg

2002-10-18 Thread Bruce Momjian
I think we should move /contrib/retep to gborg. It is 400k and isn't anywhere near our core functionality. I will add to TODO: Move /contrib/retep to gborg Can I move this during beta? I don't think so. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PRO

Re: [HACKERS] autocommit vs TRUNCATE et al

2002-10-18 Thread Bruce Momjian
Mike Mascari wrote: > Gavin Sherry wrote: > > On Fri, 18 Oct 2002, Tom Lane wrote: > > > > > >>Anyone see a way out of this catch-22? If not, which is the least > >>bad alternative? > > > > > > Ultimately, fix TRUNCATE to be transaction safe. This is non-trivial, > > I know :-). > > > > Regar

Re: [HACKERS] autocommit vs TRUNCATE et al

2002-10-18 Thread Mike Mascari
Gavin Sherry wrote: On Fri, 18 Oct 2002, Tom Lane wrote: Anyone see a way out of this catch-22? If not, which is the least bad alternative? Ultimately, fix TRUNCATE to be transaction safe. This is non-trivial, I know :-). Regardless, the first option seems the less of the two evils. Even

Re: [HACKERS] autocommit vs TRUNCATE et al

2002-10-18 Thread Gavin Sherry
On Fri, 18 Oct 2002, Tom Lane wrote: > Anyone see a way out of this catch-22? If not, which is the least > bad alternative? Ultimately, fix TRUNCATE to be transaction safe. This is non-trivial, I know :-). Regardless, the first option seems the less of the two evils. Gavin --

Re: [HACKERS] autocommit vs TRUNCATE et al

2002-10-18 Thread Joe Conway
Bruce Momjian wrote: Joe Conway wrote: Bruce Momjian wrote: most useful approach. The analogy to SET hadn't occurred to me. Yea, the SET behavior appeared pretty queer to me, but now that I have used it, I am getting used to it. In the last case, the TRUNCATE will happen, and the INS

Re: [HACKERS] autocommit vs TRUNCATE et al

2002-10-18 Thread Bruce Momjian
Joe Conway wrote: > Bruce Momjian wrote: > >>most useful approach. The analogy to SET hadn't occurred to me. > > > > > > Yea, the SET behavior appeared pretty queer to me, but now that I have > > used it, I am getting used to it. > > > > So does that mean: > >set autocommit to off; >b

Re: [HACKERS] autocommit vs TRUNCATE et al

2002-10-18 Thread Joe Conway
Bruce Momjian wrote: most useful approach. The analogy to SET hadn't occurred to me. Yea, the SET behavior appeared pretty queer to me, but now that I have used it, I am getting used to it. So does that mean: set autocommit to off; begin; insert into foo values('a'); insert into ba

Re: [HACKERS] autocommit vs TRUNCATE et al

2002-10-18 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > ... I think we > > should just do an automatic COMMIT if it is the first statement of a > > transaction, and if not, throw the same error we used to throw. We are > > performing autocommit for SET at the start of a transaction now any

Re: [HACKERS] autocommit vs TRUNCATE et al

2002-10-18 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > ... I think we > should just do an automatic COMMIT if it is the first statement of a > transaction, and if not, throw the same error we used to throw. We are > performing autocommit for SET at the start of a transaction now anyway, > so it isn't totally

Re: [HACKERS] autocommit vs TRUNCATE et al

2002-10-18 Thread Bruce Momjian
Tom Lane wrote: > There are a number of statements, such as TRUNCATE TABLE, that refuse to > run in a transaction block because they perform actions that can't be > rolled back later. > > These statements currently do not look at autocommit, which means that > if autocommit is off, their tests wil

Re: [HACKERS] autocommit vs TRUNCATE et al

2002-10-18 Thread Joe Conway
Tom Lane wrote: There are a number of statements, such as TRUNCATE TABLE, that refuse to run in a transaction block because they perform actions that can't be rolled back later. These statements currently do not look at autocommit, which means that if autocommit is off, their tests will succeed .

[HACKERS] autocommit vs TRUNCATE et al

2002-10-18 Thread Tom Lane
There are a number of statements, such as TRUNCATE TABLE, that refuse to run in a transaction block because they perform actions that can't be rolled back later. These statements currently do not look at autocommit, which means that if autocommit is off, their tests will succeed ... but then a tra

Re: [HACKERS] compile error in CVS HEAD

2002-10-18 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> writes: > I see the following error with the current CVS code: > copy.c:425: `errno' undeclared (first use in this function) Hmm. Needs a "#include " seemingly; but surely that error has been there awhile? (light dawns...) I'll bet it was masked by all the bogus

[HACKERS] compile error in CVS HEAD

2002-10-18 Thread Neil Conway
I see the following error with the current CVS code: make[3]: Entering directory `/home/nconway/pgsql/src/backend/commands' [ ... ] gcc -O2 -DLINUX_PROFILE -g -pg -Wall -Wmissing-prototypes -Wmissing-declarations

Re: [HACKERS] PL/Perl and Perl 5.8

2002-10-18 Thread Neil Conway
Peter Eisentraut <[EMAIL PROTECTED]> writes: > The HAS_CRYPT_R is true because the function is available even without the > prototype, but the struct is not. A plain bug in Perl's configury > mechanism. Yeah, that's true. The question is whether it's worth working around the bug. IMHO, yes -- but

Re: [HACKERS] ECPG and bison

2002-10-18 Thread Bruce Momjian
Peter Eisentraut wrote: > Michael Meskes writes: > > > Could anyone please tell me if we found a solution? It seems I missed > > any discussion or whatsoever. The only things I know is that > > postgresql.org still has bison 1.35 installed and 7.3 release is > > nearing. > > I suggest that you me

[HACKERS] clusterdb has poor error recovery

2002-10-18 Thread Peter Eisentraut
$ ./clusterdb psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? psql: could not connect to server: No such file or directory Is the server running locally and accep

Re: [HACKERS] ECPG and bison

2002-10-18 Thread Peter Eisentraut
Michael Meskes writes: > Could anyone please tell me if we found a solution? It seems I missed > any discussion or whatsoever. The only things I know is that > postgresql.org still has bison 1.35 installed and 7.3 release is > nearing. I suggest that you merge your branch as soon as you are ready

Re: [HACKERS] Cleanup of /contrib

2002-10-18 Thread Bruce Momjian
Peter Eisentraut wrote: > Bruce Momjian writes: > > > I am cleaning up /contrib by adding "autocommit = 'on'" > > Is everyone in the world now required to add "autocommit = on" in all > scripts, interfaces, programs, applications that are not strictly personal > use? Is there no better solution?

Re: [HACKERS] pg_dump and large files - is this a problem?

2002-10-18 Thread Peter Eisentraut
Philip Warner writes: > > I have made the changes to pg_dump and verified that (a) it reads old > files, (b) it handles 8 byte offsets, and (c) it dumps & seems to restore > (at least to /dev/null). > > I don't have a lot of options for testing it - should I just apply the > changes and wait for t

Re: [HACKERS] PL/Perl and Perl 5.8

2002-10-18 Thread Peter Eisentraut
Neil Conway writes: > #ifdef HAS_CRYPT_R > #if CRYPT_R_PROTO == REENTRANT_PROTO_B_CCD > CRYPTD* _crypt_data; > #else > struct crypt_data _crypt_struct; > #endif > #endif /* HAS_CRYPT_R */ > > The "crypt_data" struct is defined in crypt.h, but only if _GNU_SOURCE > is defined -- just li

Re: [HACKERS] ECPG and bison

2002-10-18 Thread Larry Rosenman
On Fri, 2002-10-18 at 13:51, Tom Lane wrote: > Michael Meskes <[EMAIL PROTECTED]> writes: > >> those now, you can, because I assume your bison 1.50 output will get > >> into CVS. I have bison 1.50 here too. > > > The changes are there already, I just have to fold the ecpg.big branch > > into HEAD

Re: [HACKERS] Postgres Windows Native Port

2002-10-18 Thread Jason Tishler
Michael, Please post instead of sending private email. On Fri, Oct 18, 2002 at 12:08:02PM +0200, Michael Steiner wrote: > FAQ says: "A native port to MS Win NT/2000/XP is currently being worked > on." > > => When is it expected to be available as a stable release? I don't know. > Will it be ba

Re: [HACKERS] ECPG and bison

2002-10-18 Thread Tom Lane
Michael Meskes <[EMAIL PROTECTED]> writes: >> those now, you can, because I assume your bison 1.50 output will get >> into CVS. I have bison 1.50 here too. > The changes are there already, I just have to fold the ecpg.big branch > into HEAD. Probably you should refrain from doing that until Marc

Re: [HACKERS] optimizer question

2002-10-18 Thread Tom Lane
Michael Meskes <[EMAIL PROTECTED]> writes: > I was just approached with an optimizer question I cannot answer. Does > our optimizer know how expensive different comparisons are? It does not, because there's noplace it could look to find the info. > If there are different comparisons in a where cl

Re: [HACKERS] pg_encoding doesn't reject invalid input

2002-10-18 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > pg_encoding doesn't reject invalid input (like 'pg_encoding foo'). I > think it should exit with a non-zero status. Seems reasonable to me ... shouldn't it complain on stderr as well? regards, tom lane --

Re: [HACKERS] ECPG and bison

2002-10-18 Thread Michael Meskes
On Fri, Oct 18, 2002 at 11:48:33AM -0400, Bruce Momjian wrote: > Yes, we are going to upgrade to bison 1.50 on our main server as soon as > Marc gets it installed. If you want to make your changes and commit Okay. > those now, you can, because I assume your bison 1.50 output will get > into CVS.

[HACKERS] optimizer question

2002-10-18 Thread Michael Meskes
Hi, I was just approached with an optimizer question I cannot answer. Does our optimizer know how expensive different comparisons are? That is can it do something like: If there are different comparisons in a where clause check the ints first, then the strings, then everything with regexp, or lik

[HACKERS] memcpy testing

2002-10-18 Thread Bruce Momjian
Seems we aren't the only ones concerned about memset-like optimizations: http://www.bsdforums.org/forums/showthread.php?threadid=3778 This talks about using MMX assembly instructions for memcpy. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED]

Re: [HACKERS] Current CVS has strange parser for float type

2002-10-18 Thread Peter Eisentraut
Teodor Sigaev writes: > wow=# select 5.3::float; > ERROR: Bad float8 input format '5.3' Does it accept '5,4'::float? Try running initdb with --locale=C. -- Peter Eisentraut [EMAIL PROTECTED] ---(end of broadcast)--- TIP 1: subscribe and unsu

Antw: Re: [HACKERS] Postgresql and multithreading

2002-10-18 Thread Ulrich Neumann
Marc, not only the global variables are a problem. PostgreSQL doesn't clean up all the memory before a process terminates and you must deal with signals between threads. I've modified PostgreSQL that it is completely thread based and nearly clean with allocating/deallocating memory and I'm using

[HACKERS] pg_encoding doesn't reject invalid input

2002-10-18 Thread Peter Eisentraut
pg_encoding doesn't reject invalid input (like 'pg_encoding foo'). I think it should exit with a non-zero status. -- Peter Eisentraut [EMAIL PROTECTED] ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [HACKERS] Postgresql and multithreading

2002-10-18 Thread Greg Copeland
On Fri, 2002-10-18 at 09:28, Tom Lane wrote: > Greg Copeland <[EMAIL PROTECTED]> writes: > > On Thu, 2002-10-17 at 22:20, Tom Lane wrote: > >> Simple: respond to 'em all with a one-line answer: "convince us why we > >> should use it". The burden of proof always seems to fall on the wrong > >> end

Re: [HACKERS] ECPG and bison

2002-10-18 Thread Bruce Momjian
Yes, we are going to upgrade to bison 1.50 on our main server as soon as Marc gets it installed. If you want to make your changes and commit those now, you can, because I assume your bison 1.50 output will get into CVS. I have bison 1.50 here too. ---

[HACKERS] ECPG and bison

2002-10-18 Thread Michael Meskes
Could anyone please tell me if we found a solution? It seems I missed any discussion or whatsoever. The only things I know is that postgresql.org still has bison 1.35 installed and 7.3 release is nearing. Michael -- Michael Meskes [EMAIL PROTECTED] Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux

Re: [HACKERS] Postgresql and multithreading

2002-10-18 Thread Bruce Momjian
Tom Lane wrote: > Greg Copeland <[EMAIL PROTECTED]> writes: > > On Thu, 2002-10-17 at 22:20, Tom Lane wrote: > >> Simple: respond to 'em all with a one-line answer: "convince us why we > >> should use it". The burden of proof always seems to fall on the wrong > >> end in these discussions. > > >

Re: [HACKERS] Postgresql and multithreading

2002-10-18 Thread Tom Lane
Greg Copeland <[EMAIL PROTECTED]> writes: > On Thu, 2002-10-17 at 22:20, Tom Lane wrote: >> Simple: respond to 'em all with a one-line answer: "convince us why we >> should use it". The burden of proof always seems to fall on the wrong >> end in these discussions. > ... Now, it seems, that > peop

Re: [HACKERS] Analysis of ganged WAL writes

2002-10-18 Thread Tom Lane
Mats Lofkvist <[EMAIL PROTECTED]> writes: > It does indeed look like a great improvement, so is the fix > going to be merged to the 7.3 branch or is it too late for that? Yes, been there done that ... regards, tom lane ---(end of broadcast)

Re: [HACKERS] Postgresql and multithreading

2002-10-18 Thread Greg Copeland
On Thu, 2002-10-17 at 22:20, Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > Let me add one more thing on this "thread". This is one email in a long > > list of "Oh, gee, you aren't using that wizz-bang new > > sync/thread/aio/raid/raw feature" discussion where someone shows up and

Re: [HACKERS] pg_dump and large files - is this a problem?

2002-10-18 Thread Tom Lane
Philip Warner <[EMAIL PROTECTED]> writes: > I don't have a lot of options for testing it - should I just apply the > changes and wait for the problems, or can someone offer a bigendian machine > and/or a 4 byte off_t machine? My HP is big-endian; send in the patch and I'll check it here...

Re: [HACKERS] Analysis of ganged WAL writes

2002-10-18 Thread Mats Lofkvist
[EMAIL PROTECTED] (Tom Lane) writes: [snip] > > So this does seem to be a nice win, and unless I hear objections > I will apply it ... > It does indeed look like a great improvement, so is the fix going to be merged to the 7.3 branch or is it too late for that? _ Mats Lofkvist [EMAIL PRO