Re: [HACKERS] Re: LOCK Fixes/Break on FreeBSD 4.2-STABLE

2000-11-28 Thread Larry Rosenman
* Alfred Perlstein <[EMAIL PROTECTED]> [001128 22:55]: > * Larry Rosenman <[EMAIL PROTECTED]> [001128 20:52] wrote: > > My offer stands for you as well, if you'd like an account > > on this P-III 600E, you are welcome to one... > > I just remebered my laptop in the other room, it's a pretty recen

Re: [HACKERS] Re: LOCK Fixes/Break on FreeBSD 4.2-STABLE

2000-11-28 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [001128 23:03]: > Larry Rosenman <[EMAIL PROTECTED]> writes: > >> We've called that routine s_lock for a *long* time, so it seems > >> like there must be some factor involved that I don't see just yet... > > > Didn't your commit message say something about the TAS a

[HACKERS] Re: LOCK Fixes/Break on FreeBSD 4.2-STABLE

2000-11-28 Thread Tom Lane
Larry Rosenman <[EMAIL PROTECTED]> writes: >> We've called that routine s_lock for a *long* time, so it seems >> like there must be some factor involved that I don't see just yet... > Didn't your commit message say something about the TAS and NON-TAS > paths being the same now? Yeah, but don't

[HACKERS] Re: LOCK Fixes/Break on FreeBSD 4.2-STABLE

2000-11-28 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [001128 22:55]: > Larry Rosenman <[EMAIL PROTECTED]> writes: > >> Here is the "Current" /usr/include/machine/lock.h: > >> ... > >> void s_lock __P((struct simplelock *)); > >> ... > > Ick. Seems like the relevant question is not so much "why

[HACKERS] Re: LOCK Fixes/Break on FreeBSD 4.2-STABLE

2000-11-28 Thread Tom Lane
Larry Rosenman <[EMAIL PROTECTED]> writes: >> Here is the "Current" /usr/include/machine/lock.h: >> ... >> void s_lock __P((struct simplelock *)); >> ... Ick. Seems like the relevant question is not so much "why did it break" as "how did it ever manage to work"? I have no probl

Re: [HACKERS] Re: LOCK Fixes/Break on FreeBSD 4.2-STABLE

2000-11-28 Thread Alfred Perlstein
* Larry Rosenman <[EMAIL PROTECTED]> [001128 20:52] wrote: > My offer stands for you as well, if you'd like an account > on this P-III 600E, you are welcome to one... I just remebered my laptop in the other room, it's a pretty recent 4.2. I'll give it shot. Yes, it's possible to forget about a

Re: [HACKERS] Initdb not running on beos

2000-11-28 Thread Alfred Perlstein
* Tom Lane <[EMAIL PROTECTED]> [001128 20:48] wrote: > Adam Haberlach <[EMAIL PROTECTED]> writes: > > On Mon, Nov 27, 2000 at 04:09:46PM -0500, Tom Lane wrote: > >> Somewhere right around here is where I am going to ask why we are > >> entertaining the idea of a BeOS port in the first place... it'

Re: [HACKERS] Re: LOCK Fixes/Break on FreeBSD 4.2-STABLE

2000-11-28 Thread Larry Rosenman
My offer stands for you as well, if you'd like an account on this P-III 600E, you are welcome to one... LER * Alfred Perlstein <[EMAIL PROTECTED]> [001128 22:46]: > * Larry Rosenman <[EMAIL PROTECTED]> [001128 20:44] wrote: > > * Tom Lane <[EMAIL PROTECTED]> [001128 22:31]: > > > Larry Rosenman <

Re: [HACKERS] Re: LOCK Fixes/Break on FreeBSD 4.2-STABLE

2000-11-28 Thread Alfred Perlstein
* Larry Rosenman <[EMAIL PROTECTED]> [001128 20:44] wrote: > * Tom Lane <[EMAIL PROTECTED]> [001128 22:31]: > > Larry Rosenman <[EMAIL PROTECTED]> writes: > > > The last batch of commits break on FreeBSD 4.2-STABLE. > > > /usr/include/machine/lock.h:148: conflicting types for `s_lock' > > > ../..

Re: [HACKERS] Initdb not running on beos

2000-11-28 Thread Tom Lane
Adam Haberlach <[EMAIL PROTECTED]> writes: > On Mon, Nov 27, 2000 at 04:09:46PM -0500, Tom Lane wrote: >> Somewhere right around here is where I am going to ask why we are >> entertaining the idea of a BeOS port in the first place... it's >> evidently not Unix or even trying hard to be close to Un

[HACKERS] Re: LOCK Fixes/Break on FreeBSD 4.2-STABLE

2000-11-28 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [001128 22:31]: > Larry Rosenman <[EMAIL PROTECTED]> writes: > > The last batch of commits break on FreeBSD 4.2-STABLE. > > /usr/include/machine/lock.h:148: conflicting types for `s_lock' > > ../../../src/include/storage/s_lock.h:402: previous declaration of `s_lock

[HACKERS] Re: LOCK Fixes/Break on FreeBSD 4.2-STABLE

2000-11-28 Thread Larry Rosenman
* Larry Rosenman <[EMAIL PROTECTED]> [001128 22:33]: > * Tom Lane <[EMAIL PROTECTED]> [001128 22:31]: > > Larry Rosenman <[EMAIL PROTECTED]> writes: > > > The last batch of commits break on FreeBSD 4.2-STABLE. > > > /usr/include/machine/lock.h:148: conflicting types for `s_lock' > > > ../../../sr

[HACKERS] Re: LOCK Fixes/Break on FreeBSD 4.2-STABLE

2000-11-28 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [001128 22:31]: > Larry Rosenman <[EMAIL PROTECTED]> writes: > > The last batch of commits break on FreeBSD 4.2-STABLE. > > /usr/include/machine/lock.h:148: conflicting types for `s_lock' > > ../../../src/include/storage/s_lock.h:402: previous declaration of `s_lock

[HACKERS] Re: LOCK Fixes/Break on FreeBSD 4.2-STABLE

2000-11-28 Thread Tom Lane
Larry Rosenman <[EMAIL PROTECTED]> writes: > The last batch of commits break on FreeBSD 4.2-STABLE. > /usr/include/machine/lock.h:148: conflicting types for `s_lock' > ../../../src/include/storage/s_lock.h:402: previous declaration of `s_lock' That's odd. s_lock has been declared the same way r

Re: [HACKERS] Initdb not running on beos

2000-11-28 Thread Adam Haberlach
On Mon, Nov 27, 2000 at 04:09:46PM -0500, Tom Lane wrote: > Cyril VELTER <[EMAIL PROTECTED]> writes: > > Unfortunatly, there is no hard link on beos :=(. link and unlink are > > there, but link always return "No such file or directory". > > Somewhere right around here is where I am going to

Re: [HACKERS] Problem in AlterTableAddConstraint?

2000-11-28 Thread Philip Warner
Assuming the silence is agreement, does this look like the right solution (I assume looping through the index is the only way to count the segments): if (indexStruct->indisunique) { List *attrl; /* go through the fkconstraint->pk_attrs list */ foreach(attrl

Re: [HACKERS] beta testing version

2000-11-28 Thread Nathan Myers
On Wed, Nov 29, 2000 at 09:59:34AM +0800, xuyifeng wrote: > NO, I just tested how solid PgSQL is, I run a program busy inserting > record into PG table, when I suddenly pulled out power from my machine ... Nobody claims PostgreSQL is proof against power failures. > ... We use WindowsNT and MSSQL

[Fwd: Re: [HACKERS] 8192 BLCKSZ ?]

2000-11-28 Thread mlw
Tom Samplonius wrote: > On Tue, 28 Nov 2000, mlw wrote: > > > Tom Samplonius wrote: > > > > > > On Mon, 27 Nov 2000, mlw wrote: > > > > > > > This is just a curiosity. > > > > > > > > Why is the default postgres block size 8192? These days, with caching > > > > file systems, high speed DMA disks

Re: [HACKERS] beta testing version

2000-11-28 Thread xuyifeng
NO, I just tested how solid PgSQL is, I run a program busy inserting record into PG table, when I suddenly pulled out power from my machine and restarted PG, I can not insert any record into database table, all backends are dead without any respone (not core dump), note that I am using Fr

Re: [HACKERS] LOCK Fixes/Break on FreeBSD 4.2-STABLE

2000-11-28 Thread Larry Rosenman
BTW, it compiles fine on UnixWare 7.1.1 * Larry Rosenman <[EMAIL PROTECTED]> [001128 19:36]: > The last batch of commits break on FreeBSD 4.2-STABLE. > $ uname -a > FreeBSD lerbsd.lerctr.org 4.2-STABLE FreeBSD 4.2-STABLE #90: Tue Nov > 28 04:07:50 CST 2000 > [EMAIL PROTECTED]:/usr/src/sys/com

[HACKERS] LOCK Fixes/Break on FreeBSD 4.2-STABLE

2000-11-28 Thread Larry Rosenman
The last batch of commits break on FreeBSD 4.2-STABLE. $ uname -a FreeBSD lerbsd.lerctr.org 4.2-STABLE FreeBSD 4.2-STABLE #90: Tue Nov 28 04:07:50 CST 2000 [EMAIL PROTECTED]:/usr/src/sys/compile/LERBSD i386 $ Configure: ./configure --prefix=/home/ler/pg-test --enable-syslog \ --with-

[HACKERS] F_SETLK is looking worse and worse...

2000-11-28 Thread Tom Lane
While testing interlocking of multiple postmasters, I discovered that the HAVE_FCNTL_SETLK interlock code we have in StreamServerPort() does not work at all on HPUX 10.20. This platform has F_SETLK according to configure, but: 1. The lock is never applied to a socket, because the open() on the n

Re: [HACKERS] beta testing version

2000-11-28 Thread The Hermit Hacker
On Tue, 28 Nov 2000, Don Baccus wrote: > At 03:25 PM 11/28/00 -0700, Ron Chmara wrote: > >Mitch Vincent wrote: > >> > >> This is one of the not-so-stomped boxes running PostgreSQL -- I've never > >> restarted PostgreSQL on it since it was installed. > >> 12:03pm up 122 days, 7:54, 1 user, lo

Re: [HACKERS] beta testing version

2000-11-28 Thread Don Baccus
At 03:25 PM 11/28/00 -0700, Ron Chmara wrote: >Mitch Vincent wrote: >> >> This is one of the not-so-stomped boxes running PostgreSQL -- I've never >> restarted PostgreSQL on it since it was installed. >> 12:03pm up 122 days, 7:54, 1 user, load average: 0.08, 0.11, 0.09 >> I had some index cor

Re: [HACKERS] beta testing version

2000-11-28 Thread Ron Chmara
Mitch Vincent wrote: > > This is one of the not-so-stomped boxes running PostgreSQL -- I've never > restarted PostgreSQL on it since it was installed. > 12:03pm up 122 days, 7:54, 1 user, load average: 0.08, 0.11, 0.09 > I had some index corruption problems in 6.5.3 but since 7.0.X I haven't

Re: [HACKERS] 8192 BLCKSZ ?

2000-11-28 Thread Nathan Myers
On Tue, Nov 28, 2000 at 04:24:34PM -0500, Tom Lane wrote: > Nathan Myers <[EMAIL PROTECTED]> writes: > > In the event of a power outage, the drive will stop writing in > > mid-sector. > > Really? Any competent drive firmware designer would've made sure that > can't happen. The drive has to dete

Re: [HACKERS] 8192 BLCKSZ ?

2000-11-28 Thread Tom Lane
Nathan Myers <[EMAIL PROTECTED]> writes: > In the event of a power outage, the drive will stop writing in > mid-sector. Really? Any competent drive firmware designer would've made sure that can't happen. The drive has to detect power loss well before it actually loses control of its actuators,

Re: [HACKERS] 8192 BLCKSZ ?

2000-11-28 Thread Nathan Myers
On Tue, Nov 28, 2000 at 12:38:37AM -0500, Tom Lane wrote: > "Christopher Kings-Lynne" <[EMAIL PROTECTED]> writes: > > I don't believe it's a performance issue, I believe it's that writes to > > blocks greater than 8k cannot be guaranteed 'atomic' by the operating > > system. Hence, 32k blocks wou

Re: [HACKERS] 8192 BLCKSZ ?

2000-11-28 Thread Bruce Guenter
On Tue, Nov 28, 2000 at 12:38:37AM -0500, Tom Lane wrote: > Not sure about the wild-and-wooly world of Linux filesystems... > anybody know what the allocation unit is on the popular Linux FSes? It rather depends on the filesystem. Current ext2 (the most common) systems default to 1K on small par

Re: [HACKERS] Re: FWD: tinterval vs interval on pgsql-novice

2000-11-28 Thread Thomas Lockhart
> > To fix this you simply need to double-quote "overlaps" when it's used as a > > straight function call. See how substring does it in pg_proc.h. > Hmm. Why was this required for the substring() example? afaik all of > this should be handled (correctly) in the grammar... I see it now. Will look

Re: [HACKERS] Re: FWD: tinterval vs interval on pgsql-novice

2000-11-28 Thread Thomas Lockhart
> To fix this you simply need to double-quote "overlaps" when it's used as a > straight function call. See how substring does it in pg_proc.h. Hmm. Why was this required for the substring() example? afaik all of this should be handled (correctly) in the grammar... - Thomas

Re: [GENERAL] Warning: Don't delete those /tmp/.PGSQL.* files

2000-11-28 Thread Joel Burton
On 25 Nov 2000, at 17:35, Tom Lane wrote: > > So, I began restarting pgsql w/a line like > > > rm -f /tmp/.PGSQL.* && postmaster -i >log 2>log & > > > Which works great. Except that I *kept* using this for two weeks > > after the view problem (damn that bash up-arrow laziness!), and > > yest

AW: [HACKERS] Please advise features in 7.1 (SUMMARY)

2000-11-28 Thread Zeugswetter Andreas SB
> > So, having _both_ is the best thing. > > Absolutely, that's always what I meant -- we already have views and views > can do this type of stuff at SELECT time can't they? So it's not a change, > just an addition And the precalculated and stored on disk thing can be done with triggers. A

Re: [HACKERS] Re: FWD: tinterval vs interval on pgsql-novice

2000-11-28 Thread Peter Eisentraut
Tom Lane writes: > template1=# select ('today', interval '1 day') OVERLAPS ('yesterday', interval > '18 hours'); > ERROR: parser: parse error at or near "overlaps" > > I don't understand why we're getting a parse error here ... The OVERLAPS special SQL-construct is converted into the 'select o

Re: [HACKERS] beta testing version

2000-11-28 Thread Mitch Vincent
This is one of the not-so-stomped boxes running PostgreSQL -- I've never restarted PostgreSQL on it since it was installed. 12:03pm up 122 days, 7:54, 1 user, load average: 0.08, 0.11, 0.09 I had some index corruption problems in 6.5.3 but since 7.0.X I haven't heard so much as a peep from a

Re: [HACKERS] Please advise features in 7.1 (SUMMARY)

2000-11-28 Thread Mitch Vincent
> So, having _both_ is the best thing. Absolutely, that's always what I meant -- we already have views and views can do this type of stuff at SELECT time can't they? So it's not a change, just an addition -Mitch

[HACKERS] Re: FWD: tinterval vs interval on pgsql-novice

2000-11-28 Thread Thomas Lockhart
Tom Lane wrote: > > Thomas Lockhart <[EMAIL PROTECTED]> writes: > >> I see it does fail, but I'm at a complete loss to understand why, > >> especially given that the first case still works. The grammar looks > >> perfectly fine AFAICT. Can you explain what's wrong here? > > > Here is what I'm

Re: [HACKERS] beta testing version

2000-11-28 Thread The Hermit Hacker
On Tue, 28 Nov 2000, Hannu Krosing wrote: > xuyifeng wrote: > > > > I just noticed this conversation so I have not followed all of it, > but you seem to have strange priorities > > > I just want PG can be improved quickly, for me crash recover is very urgent >problem, > > Crash avoidance is

Re: [HACKERS] Please advise features in 7.1 (SUMMARY)

2000-11-28 Thread Ross J. Reedstrom
On Tue, Nov 28, 2000 at 05:19:45PM +0100, Zeugswetter Andreas SB wrote: > > I guess it depends on what you're using it for -- disk space > > is cheap and > > abundant anymore, I can see some advantages of having it > > computed only once > > rather than X times, where X is the number of SELECTs

Re: [HACKERS] beta testing version

2000-11-28 Thread The Hermit Hacker
On Tue, 28 Nov 2000, xuyifeng wrote: > you are complete wrong, if I don't like PG, I'll never go here or talk > anything about PG, I don't care it. I just want PG can be improved > quickly, for me crash recover is very urgent problem, otherewise PG is > forced to stay on my desktop machine, We'll

Re: [HACKERS] beta testing version

2000-11-28 Thread The Hermit Hacker
On Tue, 28 Nov 2000, xuyifeng wrote: > no doubt, I have touched some problems PG has, right? if PG is so good, > is there any necessary for the team to improve PG again? There is always room for improvements for any software package ... whether it be PgSQL, Linux, FreeBSD or PHPBuilder ...

Re: [HACKERS] beta testing version

2000-11-28 Thread Hannu Krosing
xuyifeng wrote: > I just noticed this conversation so I have not followed all of it, but you seem to have strange priorities > I just want PG can be improved quickly, for me crash recover is very urgent problem, Crash avoidance is usually much more urgent, at least on production servers. > o

AW: [HACKERS] Please advise features in 7.1 (SUMMARY)

2000-11-28 Thread Zeugswetter Andreas SB
> I guess it depends on what you're using it for -- disk space > is cheap and > abundant anymore, I can see some advantages of having it > computed only once > rather than X times, where X is the number of SELECTs as that > could get > costly on really high traffic servers.. Costly not so much

[HACKERS] Re: FWD: tinterval vs interval on pgsql-novice

2000-11-28 Thread Tom Lane
Thomas Lockhart <[EMAIL PROTECTED]> writes: >> I see it does fail, but I'm at a complete loss to understand why, >> especially given that the first case still works. The grammar looks >> perfectly fine AFAICT. Can you explain what's wrong here? > Here is what I'm planning on doing (already test

[HACKERS] Re: FWD: tinterval vs interval on pgsql-novice

2000-11-28 Thread Thomas Lockhart
> Thomas Lockhart <[EMAIL PROTECTED]> writes: > > select ('today', interval '1 day') OVERLAPS ('yesterday', interval '18 > > hours'); > > (the second one fails). Now that I look, this breakage was introduced in > > March when "we" expunged operators allowed as identifiers (Tom Lane and > > I hav

Re: [HACKERS] Please advise features in 7.1 (SUMMARY)

2000-11-28 Thread Mitch Vincent
I guess it depends on what you're using it for -- disk space is cheap and abundant anymore, I can see some advantages of having it computed only once rather than X times, where X is the number of SELECTs as that could get costly on really high traffic servers.. Costly not so much for simple comput

AW: [HACKERS] Please advise features in 7.1 (SUMMARY)

2000-11-28 Thread Zeugswetter Andreas SB
> > This is a summary of replies. > > > > 1. Calculated fields in table definitions . eg. > > > > Create table test ( > > A Integer, > > B integer, > > the_sum As (A+B), > > ); > > > > This functionality can be achieved through the use of views. >

[HACKERS] Problem in AlterTableAddConstraint?

2000-11-28 Thread Philip Warner
Browsing through backend/commands/command.c I noticed the following code: if (indexStruct->indisunique) { List *attrl; /* go through the fkconstraint->pk_attrs list */ foreach(attrl, fkconstraint->pk_attrs) { Ident *attr=lfirst(attrl);

Re: [HACKERS] Please advise features in 7.1 (SUMMARY)

2000-11-28 Thread Ross J. Reedstrom
On Tue, Nov 28, 2000 at 02:04:01PM +1300, John Huttley wrote: > Thanks for your help, everyone. > > This is a summary of replies. > > 1. Calculated fields in table definitions . eg. > > Create table test ( > A Integer, > B integer, > the_sum As (A+B)

AW: [HACKERS] Re: [GENERAL] is it a bug?

2000-11-28 Thread Zeugswetter Andreas SB
> lpad and rpad never truncate, they only pad. > > Perhaps they *should* truncate if the specified length is less than > the original string length. Does Oracle do that? Yes, it truncates, same as Informix. Andreas

Re: [HACKERS] beta testing version

2000-11-28 Thread Thomas Lockhart
> no doubt, I have touched some problems PG has, right? if PG is so good, > is there any necessary for the team to improve PG again? *rofl* Good call Don :) - Thomas

Re: [HACKERS] beta testing version

2000-11-28 Thread xuyifeng
you are complete wrong, if I don't like PG, I'll never go here or talk anything about PG, I don't care it. I just want PG can be improved quickly, for me crash recover is very urgent problem, otherewise PG is forced to stay on my desktop machine, We'll dare not move it to our Server, I always

Re: [HACKERS] beta testing version

2000-11-28 Thread Don Baccus
At 11:15 PM 11/28/00 +0800, xuyifeng wrote: >no doubt, I have touched some problems PG has, right? if PG is so good, >is there any necessary for the team to improve PG again? See? Troll... The guy worships MySQL, just in case folks haven't made the connection. I'm going to ignore him from

Re: [HACKERS] beta testing version

2000-11-28 Thread xuyifeng
no doubt, I have touched some problems PG has, right? if PG is so good, is there any necessary for the team to improve PG again? Regards, XuYifeng - Original Message - From: Don Baccus <[EMAIL PROTECTED]> To: xuyifeng <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, November

RE: [HACKERS] Constraint names using 'user namespace'?

2000-11-28 Thread Don Baccus
At 02:18 PM 11/28/00 +0800, Christopher Kings-Lynne wrote: >> As for the treading-on-user-namespace issue, we already do that for all >> implicitly created indexes (see UNIQUE, PRIMARY KEY, etc). I'd prefer >> to treat named constraints consistently with that long-established >> practice until we

[HACKERS] Re: [GENERAL] is it a bug?

2000-11-28 Thread Tom Lane
"He weiping" <[EMAIL PROTECTED]> writes: > but it seems the "lpad", "rpad" don't work, > when I type: > select lpad('laser', 4, 'a'); > in psql, the result is still=20 > 'laser', the same with 'rpad', > Is it a bug or I'm mis-understaning the lpad and/or rpad functions? lpad and rpad never trunca

RE: [HACKERS] Full text Indexing -out of contrib and into main..

2000-11-28 Thread Don Baccus
At 10:52 AM 11/28/00 +0100, Magnus Hagander wrote: >> > b) Check out MSSQL 7's capabilities and weep. >> >> BTW, have you studied MSSQL enough to tell me if it has a >> separate/standalone >> (as a process) fti engine or just another index type. >It is standalone - separate process, data is sto

Re: [HACKERS] Question about Oracle compatibility

2000-11-28 Thread Don Baccus
At 09:59 AM 11/28/00 +, Pete Forman wrote: >Mario Weilguni writes: > > This gets really bad when the actual data is coming from a > > webinterface, I've to handle 2 different queries for the case empty > > string and non-empty string. > >In their documentation both Oracle 7 and 8 state: > >

Re: [HACKERS] beta testing version

2000-11-28 Thread Don Baccus
At 04:17 PM 11/28/00 +0800, xuyifeng wrote: >Hi, > > how long is PG7.1 already in beta testing? can it be released before Christmas day? > can PG7.1 will recover database from system crash? This guy's a troll from the PHP Builder's site (at least, Tim Perdue and I suspect this due to some po

[HACKERS] Re: FWD: tinterval vs interval on pgsql-novice

2000-11-28 Thread Tom Lane
Thomas Lockhart <[EMAIL PROTECTED]> writes: > select ('today', interval '1 day') OVERLAPS ('yesterday', interval '18 > hours'); > (the second one fails). Now that I look, this breakage was introduced in > March when "we" expunged operators allowed as identifiers (Tom Lane and > I have blood on

AW: [HACKERS] is it a bug?

2000-11-28 Thread Zeugswetter Andreas SB
> > ... it seems the "lpad", "rpad" don't work, > > when I type: > > select lpad('laser', 4, 'a'); > > in psql, the result is still > > 'laser', the same with 'rpad', > > Is it a bug or I'm mis-understaning the lpad and/or rpad functions? > > A simple misunderstanding. The length argument is for

Re: [HACKERS] is it a bug?

2000-11-28 Thread Thomas Lockhart
> ... it seems the "lpad", "rpad" don't work, > when I type: > select lpad('laser', 4, 'a'); > in psql, the result is still > 'laser', the same with 'rpad', > Is it a bug or I'm mis-understaning the lpad and/or rpad functions? A simple misunderstanding. The length argument is for the *total* leng

AW: [HACKERS] Constraint names using 'user namespace'?

2000-11-28 Thread Zeugswetter Andreas SB
> > pjw=# create table pk1(f1 integer, constraint zzz primary key(f1)); > > NOTICE: CREATE TABLE/PRIMARY KEY will create implicit > index 'zzz' for > > table 'pk1' > > CREATE > > pjw=# create table zzz(f1 integer); > > ERROR: Relation 'zzz' already exists > > > Is there a good reason why the

[HACKERS] Patch for 7.0.3 code to read pg_options

2000-11-28 Thread Oliver Elphick
The pg_options.sample that is included in 7.0.x cannot actually be used because of bugs in the routine that reads it. First, it reads only 4095 bytes and second it does not cope with white space within lines. The attached patch cures the problem. It seems to be relevant only to 7.0.x because the

Re: [HACKERS] Question about Oracle compatibility

2000-11-28 Thread Pete Forman
Mario Weilguni writes: > This gets really bad when the actual data is coming from a > webinterface, I've to handle 2 different queries for the case empty > string and non-empty string. In their documentation both Oracle 7 and 8 state: Oracle currently treats a character value with a lengt

RE: [HACKERS] Full text Indexing -out of contrib and into main..

2000-11-28 Thread Magnus Hagander
> > b) Check out MSSQL 7's capabilities and weep. > > BTW, have you studied MSSQL enough to tell me if it has a > separate/standalone > (as a process) fti engine or just another index type. It is standalone - separate process, data is stored in separate files (not in db). In SQL Server 7.0, yo

AW: [HACKERS] 8192 BLCKSZ ?

2000-11-28 Thread Zeugswetter Andreas SB
> 8k is the standard Unix file system disk transfer size. Are you sure ? I thought it was 4k on AIX and 2k on Sun. Andreas

AW: [HACKERS] 8192 BLCKSZ ?

2000-11-28 Thread Zeugswetter Andreas SB
> I don't believe it's a performance issue, I believe it's that > writes to > blocks greater than 8k cannot be guaranteed 'atomic' by the operating > system. Hence, 32k blocks would break the transactions system. (Or > something like that - am I correct?) First, 8k are not atomic eighter. Sec

Re: [HACKERS] Full text Indexing -out of contrib and into main..

2000-11-28 Thread Hannu Krosing
john huttley wrote: > > > I believe that it is appropriate for contrib/ because it is a good demo > > of FTI-like capabilities. But nothing more, yet. For at least a couple > > of reasons: > > > > 1) It generates the "index" as a table, not a PostgreSQL index or > > index-like thing. > > > > 2) I

[GENERAL] is it a bug?

2000-11-28 Thread He weiping
I'm using cvs-current, and testing those build-in function according to the docs. but it seems the "lpad", "rpad" don't work, when I type: select lpad('laser', 4, 'a'); in psql, the result is still 'laser', the same with 'rpad', Is it a bug or I'm mis-understaning the lpad and/or rpad func

RE: [HACKERS] JDBC charSet patch

2000-11-28 Thread Peter Mount
It's been committed into the cvs repository. The easiest thing to do is to use CVS. I can't remember if it was posted direct to me, or to the patches list. Peter -- Peter Mount Enterprise Support Officer, Maidstone Borough Council Email: [EMAIL PROTECTED] WWW: http://www.maidstone.gov.uk All vi

[HACKERS] ~{;X84~}: [HACKERS] beta testing version

2000-11-28 Thread He weiping
-Original Message- ~{7"<~HK~}: xuyifeng <[EMAIL PROTECTED]> ~{JU<~HK~}: [EMAIL PROTECTED] <[EMAIL PROTECTED]> ~{HUFZ~}: 2000~{Dj~}11~{TB~}28~{HU~} 16:22 ~{VwLb~}: [HACKERS] beta testing version >Hi, > > how long is PG7.1 already in beta testing? can it be released before Christmas day

[HACKERS] beta testing version

2000-11-28 Thread xuyifeng
Hi, how long is PG7.1 already in beta testing? can it be released before Christmas day? can PG7.1 will recover database from system crash? Thanks, XuYifeng