[HACKERS] fsync method checking

2003-12-11 Thread Bruce Momjian
Mark Kirkwood wrote: > This is a well-worn thread title - apologies, but these results seemed > interesting, and hopefully useful in the quest to get better performance > on Solaris: > > I was curious to see if the rather uninspiring pgbench performance > obtained from a Sun 280R (see General:

Re: [HACKERS] [COMMITTERS] pgsql-server/src/bin/initdb nls.mk po/it.po

2003-12-11 Thread Marc G. Fournier
On Thu, 11 Dec 2003, Alvaro Herrera Munoz wrote: > On Thu, Dec 11, 2003 at 06:03:05PM -0400, Peter Eisentraut - PostgreSQL wrote: > > > Modified files: > > src/bin/initdb : nls.mk > > Added files: > > src/bin/initdb/po: it.po > > Are you going to keep managing these things? I received you

Re: [HACKERS] Use of 'cp -r' in CREATE DATABASE

2003-12-11 Thread Bruce Momjian
Andrew Dunstan wrote: > Nigel J. Andrews said: > > On Thu, 11 Dec 2003, Alvaro Herrera wrote: > > > >> On Thu, Dec 11, 2003 at 06:36:05PM -0500, Bruce Momjian wrote: > >> > Our dbcommands.c has for create database: > >> > > >> > snprintf(buf, sizeof(buf), "cp -r '%s' '%s'", src_loc, > >> >

Re: [HACKERS] Use of 'cp -r' in CREATE DATABASE

2003-12-11 Thread Andrew Dunstan
Nigel J. Andrews said: > On Thu, 11 Dec 2003, Alvaro Herrera wrote: > >> On Thu, Dec 11, 2003 at 06:36:05PM -0500, Bruce Momjian wrote: >> > Our dbcommands.c has for create database: >> > >> > snprintf(buf, sizeof(buf), "cp -r '%s' '%s'", src_loc, >> > target_dir); >> > >> [...] >> > >> > I

Re: [HACKERS] Use of 'cp -r' in CREATE DATABASE

2003-12-11 Thread Bruce Momjian
Nigel J. Andrews wrote: > On Thu, 11 Dec 2003, Alvaro Herrera wrote: > > > On Thu, Dec 11, 2003 at 06:36:05PM -0500, Bruce Momjian wrote: > > > Our dbcommands.c has for create database: > > > > > > snprintf(buf, sizeof(buf), "cp -r '%s' '%s'", src_loc, target_dir); > > > > > [...] > > > > >

Re: [HACKERS] Use of 'cp -r' in CREATE DATABASE

2003-12-11 Thread Nigel J. Andrews
On Thu, 11 Dec 2003, Alvaro Herrera wrote: > On Thu, Dec 11, 2003 at 06:36:05PM -0500, Bruce Momjian wrote: > > Our dbcommands.c has for create database: > > > > snprintf(buf, sizeof(buf), "cp -r '%s' '%s'", src_loc, target_dir); > > > [...] > > > > I think we should switch to -R in our cod

Re: [HACKERS] Use of 'cp -r' in CREATE DATABASE

2003-12-11 Thread Philip Yarra
On Fri, 12 Dec 2003 10:36 am, Bruce Momjian wrote: > I think we should switch to -R in our code. Both -r and -R are supported on Linux (fileutils 4.1), Tru64 v4.0 and Solaris (at least as far back as 2.6) so no complaints here. Regards, Philip. ---(end of broadcast)

Re: [HACKERS] [Stp-devel] DBT-2 running against PostgreSQL and LVM2

2003-12-11 Thread Timothy D. Witham
Thanks for getting this out. Tim On Tue, 2003-12-09 at 16:27, [EMAIL PROTECTED] wrote: > I just wanted to share that we're on the brink of having an automated > test on our Scalable Test Platform (http://www.osdl.org/stp/) that > features our DBT-2 workload, a fair use implementation of the TPC-

Re: [HACKERS] Use of 'cp -r' in CREATE DATABASE

2003-12-11 Thread Alvaro Herrera
On Thu, Dec 11, 2003 at 06:36:05PM -0500, Bruce Momjian wrote: > Our dbcommands.c has for create database: > > snprintf(buf, sizeof(buf), "cp -r '%s' '%s'", src_loc, target_dir); > [...] > > I think we should switch to -R in our code. But you will have to write special code for Win32, won't

Re: [HACKERS] pljava revisited

2003-12-11 Thread Peter Eisentraut
Andrew Dunstan wrote: > Peter Eisentraut wrote: > >Thomas Hallgren wrote: > >>What are your thoughts and ideas? > > > >Instead of making up your own stuff, there's a whole SQL standard > > that tells you how Java embedded in an SQL server should work. Of > > course that doesn't tell you about impl

Re: [HACKERS] pljava revisited

2003-12-11 Thread Andrew Dunstan
Peter Eisentraut wrote: Thomas Hallgren wrote: What are your thoughts and ideas? Instead of making up your own stuff, there's a whole SQL standard that tells you how Java embedded in an SQL server should work. Of course that doesn't tell you about implementation details. Where can

[HACKERS] Use of 'cp -r' in CREATE DATABASE

2003-12-11 Thread Bruce Momjian
Our dbcommands.c has for create database: snprintf(buf, sizeof(buf), "cp -r '%s' '%s'", src_loc, target_dir); but my BSD/OS manual only documents 'cp -R' and mentions: Historic versions of the cp utility had a -r option. This implementation supports that option, however, its use i

Re: [HACKERS] [COMMITTERS] pgsql-server/src/bin/initdb nls.mk po/it.po

2003-12-11 Thread Alvaro Herrera Munoz
On Thu, Dec 11, 2003 at 06:03:05PM -0400, Peter Eisentraut - PostgreSQL wrote: > Modified files: > src/bin/initdb : nls.mk > Added files: > src/bin/initdb/po: it.po Are you going to keep managing these things? I received your email about a CVS write account so I could handle them f

Re: [HACKERS] pljava revisited

2003-12-11 Thread Peter Eisentraut
Thomas Hallgren wrote: > What are your thoughts and ideas? Instead of making up your own stuff, there's a whole SQL standard that tells you how Java embedded in an SQL server should work. Of course that doesn't tell you about implementation details. ---(end of broadcas

Re: [HACKERS] pljava revisited

2003-12-11 Thread Peter Eisentraut
Tom Lane wrote: > libpq++ got heaved overboard largely > because the autoconf burden for it was too high, That's news to me. Certainly the overhead doesn't grow smaller by splitting stuff up in smaller pieces. ---(end of broadcast)--- TIP 4: Don'

Re: [HACKERS] PostgreSQL port to pure Java?

2003-12-11 Thread Thomas Hallgren
My 2 cents... The C++ language is a horrible language from an OO perspective. Operator overloading, copy-constructors, templates, etc. can produce quite horrendous and inefficient results if used incorrectly. Having said that I must defend it some too. Using C++, you get inheritance, data-hid

Re: [HACKERS] 7.4 build problem on Linux Vserver

2003-12-11 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> How is "prod" getting into that command line? I suspect it's coming >> from an environment variable like PROFILE or CFLAGS ... > Is there a case for making Makefile/shell variables and defines we use > have less generic names? Havi

Re: [HACKERS] 7.4 build problem on Linux Vserver

2003-12-11 Thread Andrew Dunstan
Tom Lane wrote: "Dave Page" <[EMAIL PROTECTED]> writes: gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations prod -I../../src/include -D_GNU_SOURCE -I/usr/include -c -o path.o path.c gcc: cannot specify -o with -c or -S and multiple compilations How is "prod" get

Re: [HACKERS] 7.4 build problem on Linux Vserver

2003-12-11 Thread Dave Page
> -Original Message- > From: Tom Lane [mailto:[EMAIL PROTECTED] > Sent: 11 December 2003 15:31 > To: Dave Page > Cc: [EMAIL PROTECTED] > Subject: Re: [HACKERS] 7.4 build problem on Linux Vserver > > "Dave Page" <[EMAIL PROTECTED]> writes: > > gcc -O2 -fno-strict-aliasing -Wall -Wmissi

Re: [HACKERS] [GENERAL] Transaction Question

2003-12-11 Thread Alvaro Herrera Munoz
On Thu, Dec 11, 2003 at 04:14:43PM +0100, Manfred Koizar wrote: > On Sat, 6 Dec 2003 10:43:18 -0500 (EST), Bruce Momjian > <[EMAIL PROTECTED]> wrote: > >Where are we on nested transactions. Is it something we can get for 7.5? > > I honestly don't know. I've been working on other things lately an

Re: [HACKERS] [GENERAL] Should we consider empty fields as NULL values when dealing with string columns ?

2003-12-11 Thread Richard Huxton
On Thursday 11 December 2003 14:36, Nagib Abi Fadel wrote: > HI, > let's say we have the following table : > > # CREATE TABLE tempo (col1 varchar(3) not null); > CREATE TABLE > > # insert INTO tempo VALUES (''); > INSERT 11420541 1 I don't have much to add to Doug's reply, but you may want to look

Re: [HACKERS] 7.4 build problem on Linux Vserver

2003-12-11 Thread Tom Lane
"Dave Page" <[EMAIL PROTECTED]> writes: > gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes > -Wmissing-declarations prod -I../../src/include -D_GNU_SOURCE > -I/usr/include -c -o path.o path.c > gcc: cannot specify -o with -c or -S and multiple compilations How is "prod" getting into that c

Re: [HACKERS] [GENERAL] Should we consider empty fields as NULL values when

2003-12-11 Thread Chris Travers
On Thu, 2003-12-11 at 22:36, Nagib Abi Fadel wrote: > HI, > let's say we have the following table : > > # CREATE TABLE tempo (col1 varchar(3) not null); > CREATE TABLE > > # insert INTO tempo VALUES (''); > INSERT 11420541 1 > > the insert command works. > > The issue is that since the col

Re: [HACKERS] [GENERAL] Transaction Question

2003-12-11 Thread Manfred Koizar
On Sat, 6 Dec 2003 10:43:18 -0500 (EST), Bruce Momjian <[EMAIL PROTECTED]> wrote: >Where are we on nested transactions. Is it something we can get for 7.5? I honestly don't know. I've been working on other things lately and have not heard from Alvaro for some time. Servus Manfred

Re: [HACKERS] [GENERAL] Should we consider empty fields as NULL values when

2003-12-11 Thread Doug McNaught
"Nagib Abi Fadel" <[EMAIL PROTECTED]> writes: >The issue is that since the column col1 is defined as character with >not null attribute, > >shouldn't we deny such inserts (i mean inserting empty fields)??? NULL and the empty string '' are *completely* different things. If you want to

Re: [HACKERS] Should we consider empty fields as NULL values when dealing with string columns ?

2003-12-11 Thread Dave Page
  From: Nagib Abi Fadel [mailto:[EMAIL PROTECTED] Sent: 11 December 2003 14:37To: generalpost; developPostSubject: [HACKERS] Should we consider empty fields as NULL values when dealing with string columns ? HI, let's say we have the following table :   # CREATE TA

[HACKERS] Should we consider empty fields as NULL values when dealing with string columns ?

2003-12-11 Thread Nagib Abi Fadel
HI, let's say we have the following table :   # CREATE TABLE tempo (col1 varchar(3) not null);CREATE TABLE # insert INTO tempo VALUES ('');INSERT 11420541 1   the insert command works.   The issue is that since the column col1 is defined as character with not null attribute, shouldn't we de

Re: [HACKERS] PostgreSQL port to pure Java?

2003-12-11 Thread Doug McNaught
Shridhar Daithankar <[EMAIL PROTECTED]> writes: > Jokes and facts aside, I can't help it to think how better it would > have been, if postgresql was in C++. We could easily plug multiple > implementations of underlying subsystems without mucking much in base > code.. That's easy to do in any lang

Re: [HACKERS] PostgreSQL port to pure Java?

2003-12-11 Thread Shridhar Daithankar
Andrew Dunstan wrote: Not to mention it would kill PostgreSQL's current speedy performance! Maybe, maybe not. Modern JVMs have much better performance characteristics than was once the case. Also, some of the things that Java buys you (memory management, threading, for example) might actually

[HACKERS] 7.4 build problem on Linux Vserver

2003-12-11 Thread Dave Page
Hi all, I get the following build error when attempting to build 7.4 in a Linux Vserver (like a FreeBSD jail) built on Slackware 9.1 with the 2.4.22 kernel: make -C doc all make[1]: Entering directory `/usr/local/src/postgresql-7.4/doc' gzip -d -c man.tar.gz | /bin/tar xf - for file in man1/*.1;

Re: [HACKERS] CSV hack

2003-12-11 Thread David Fetter
In article <[EMAIL PROTECTED]> you wrote: > > You also need to quote values containing the separator. Roight! Thanks for the heads-up :) And now, version 2. Cheers, D CREATE OR REPLACE FUNCTION csv(anyarray) RETURNS TEXT AS 'DECLARE in_array ALIAS FOR $1; temp_string TEXT; quoted_