Re: [HACKERS] FE/BE Protocol - Specific version

2003-08-29 Thread Tom Lane
Robert Treat <[EMAIL PROTECTED]> writes: > Tom, just curious as to what your resistance is to this feature? ISTM > that making this admin modifiable doesn't hurt anyone and could be > helpful to some people. Admin modifiable at what level? I don't believe that the "feature" is valuable enough to

Re: [HACKERS] FE/BE Protocol - Specific version

2003-08-29 Thread Robert Treat
On Fri, 2003-08-29 at 12:09, Tom Lane wrote: > Bruce Badger <[EMAIL PROTECTED]> writes: > > Unfortunately, I am not in a position to initiate a change in the StORE > > schema. StORE is also used with other RDBMSs, and the users of those > > have no incentive to bless a change in the schema just to

Re: [HACKERS] FE/BE Protocol - Specific version

2003-08-29 Thread Richard Huxton
On Friday 29 August 2003 15:37, Bruce Badger wrote: > On Fri, 2003-08-29 at 23:35, Tom Lane wrote: > > Rod Taylor <[EMAIL PROTECTED]> writes: > > >> So, being able to stop connections trying to use old protocol versions > > >> would be very helpful in this case. > > > > > > Wouldn't it be better to

Re: [HACKERS] Bumping block size to 16K on FreeBSD...

2003-08-29 Thread Andrew Sullivan
On Fri, Aug 29, 2003 at 12:06:59AM -0300, Marc G. Fournier wrote: > The thing is ... there has been presented a strong, valid reason for > moving to 16k (at least under FreeBSD) ... and there has been a valid It sounds to me, actually, like there is a strong reason for telling people running Free

Re: [HACKERS] FE/BE Protocol - Specific version

2003-08-29 Thread Tom Lane
Bruce Badger <[EMAIL PROTECTED]> writes: > Unfortunately, I am not in a position to initiate a change in the StORE > schema. StORE is also used with other RDBMSs, and the users of those > have no incentive to bless a change in the schema just to help out the > PostgreSQL users. Hm, I must have mi

Re: [HACKERS] massive quotes?

2003-08-29 Thread Andrew Dunstan
Jon Jensen wrote: On Thu, 28 Aug 2003, Andrew Dunstan wrote: What is the state of things regarding having to use massive strings of quotes like this (taken from the 7.3 docs)?: a_output := a_output || '' if v_'' || referrer_keys.kind || '' like '' || referrer_keys.key_strin

Re: [HACKERS] massive quotes?

2003-08-29 Thread Jon Jensen
On Thu, 28 Aug 2003, Andrew Dunstan wrote: > What is the state of things regarding having to use massive strings of > quotes like this (taken from the 7.3 docs)?: > > a_output := a_output || '' if v_'' || > referrer_keys.kind || '' like '' > || referrer_keys.key_string || '''

Re: [HACKERS] Obscure: correctness of lock manager???

2003-08-29 Thread Tom Lane
Thomas Schoebel-Theuer <[EMAIL PROTECTED]> writes: > Do you have any clue whether it really could happen that really > NEVER any blocking occurs when running the DBT3 benachmark with 8 > or 16 parallel backend processes??? I haven't looked at dbt3 at all ... what does it do? We do make a point of

Re: [HACKERS] FE/BE Protocol - Specific version

2003-08-29 Thread Bruce Badger
On Fri, 2003-08-29 at 23:23, Rod Taylor wrote: > > So, being able to stop connections trying to use old protocol versions > > would be very helpful in this case. > > Wouldn't it be better to have StORE run a select version() after > connecting? Even better would be to call PQprotocolVersion() as

Re: [HACKERS] FE/BE Protocol - Specific version

2003-08-29 Thread Bruce Badger
On Fri, 2003-08-29 at 23:35, Tom Lane wrote: > Rod Taylor <[EMAIL PROTECTED]> writes: > >> So, being able to stop connections trying to use old protocol versions > >> would be very helpful in this case. > > > Wouldn't it be better to have StORE run a select version() after > > connecting? > > Wel

Re: [HACKERS] [GENERAL] before trigger problem

2003-08-29 Thread Robert Treat
http://developer.postgresql.org/ftpsite/binary/v7.3.4/RPMS/ Robert Treat On Thu, 2003-08-28 at 11:18, Marie G. Tuite wrote: > Same issue - are there rpms anywhere for 7.3.4? > > Thanks. > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Tom Lane >

Re: [HACKERS] pgsql 7.4b2 bug on column defaults?

2003-08-29 Thread Tom Lane
Giuseppe Tanzilli - CSF <[EMAIL PROTECTED]> writes: > create table test2 (i integer, t timestamp default 'now()'); Use "DEFAULT now()". I'm surprised you didn't get a syntax error from the above. > It is a known change or a bug ? It's an intentional change, yes. regards

Re: [HACKERS] Obscure: correctness of lock manager???

2003-08-29 Thread Thomas Schoebel-Theuer
Tom, I just realized that I probably could have misinterpreted the locktag information. This could have caused the conflicts in my postprocessing. Apologies if that was the reason. I'm running further checks to resolve that problem. However, what remains strange is that the lockmanager is never b

Re: [HACKERS] bug with constraint dependencies? or bug with

2003-08-29 Thread Greg Stark
Greg Stark <[EMAIL PROTECTED]> writes: > [On that note, one of my pet peeves is that the default names for constraints > are of the form $1 which requires quoting, but that \d doesn't quote them so > that you can almost but not quite copy the \d output into an sql statement > recreating the const

Re: [HACKERS] FE/BE Protocol - Specific version

2003-08-29 Thread Tom Lane
Rod Taylor <[EMAIL PROTECTED]> writes: >> So, being able to stop connections trying to use old protocol versions >> would be very helpful in this case. > Wouldn't it be better to have StORE run a select version() after > connecting? Well, his point is that old versions of his client code wouldn't

Re: [HACKERS] FE/BE Protocol - Specific version

2003-08-29 Thread Rod Taylor
> So, being able to stop connections trying to use old protocol versions > would be very helpful in this case. Wouldn't it be better to have StORE run a select version() after connecting? Even better would be to call PQprotocolVersion() as it is a protocol issue. signature.asc Description: This

Re: [HACKERS] ALTER TABLE

2003-08-29 Thread Rod Taylor
On Thu, 2003-08-28 at 23:22, Tom Lane wrote: > Rod Taylor <[EMAIL PROTECTED]> writes: > > I've been fiddling away on ALTER TABLE and have a few questions about a > > possible datatype change. Just alter portions. > > > I presume I'll need to do a table rewrite. What is the best way to > > change a

Re: [HACKERS] Obscure: correctness of lock manager???

2003-08-29 Thread Tom Lane
Thomas Schoebel-Theuer <[EMAIL PROTECTED]> writes: > the problem persists, even when starting from scratch. I did the following: > + printf("lock\n"); fflush(stdout); > + > $ grep lock run/dbt3_logfile | wc -l I'd bet that your logfile is not accumulating postmaster stdout, but only stderr

Re: [HACKERS] ALTER TABLE

2003-08-29 Thread Rod Taylor
On Fri, 2003-08-29 at 04:22, Hannu Krosing wrote: > Rod Taylor kirjutas R, 29.08.2003 kell 03:31: > > I've been fiddling away on ALTER TABLE and have a few questions about a > > possible datatype change. Just alter portions. > > > > I presume I'll need to do a table rewrite. What is the best way t

Re: [HACKERS] ALTER TABLE

2003-08-29 Thread Rod Taylor
On Thu, 2003-08-28 at 22:06, Christopher Kings-Lynne wrote: > Do you have this working: > > ALTER TABLE / ADD COLUMN .. DEFAULT nextval('asdf')... > > (eg. a default that needs to be re-evaluated for each row) > > Also, did you remember about checking domain constraints, etc.? Yes, and all nece

Re: [HACKERS] Obscure: correctness of lock manager???

2003-08-29 Thread Thomas Schoebel-Theuer
Hi Tom, the problem persists, even when starting from scratch. I did the following: # wget ftp://ftp.de.postgresql.org/mirror/postgresql/source/v7.3.4/postgresql-7.3.4.tar.gz # tar xzf postgresql-7.3.4.tar.gz # cd postgresql-7.3.4/ # cat ../mypatch --- src/backend/storage/lmgr/lock.c~2002-11

Re: [HACKERS] pgsql 7.4b2 bug on column defaults?

2003-08-29 Thread Giuseppe Tanzilli - CSF Sistemi
Hi, I see it work without quotes around function, but I got it from a 7.2 dump with quotes around it. Maybe it require a note for people dumping from 7.2, I don't have 7.3 around to try, sorry bye Giuseppe Tanzilli - CSF wrote: Hi, just testing beta2 I got strange things on default values with f

[HACKERS] pgsql 7.4b2 bug on column defaults?

2003-08-29 Thread Giuseppe Tanzilli - CSF
Hi, just testing beta2 I got strange things on default values with functions: create table test2 (i integer, t timestamp default 'now()'); test1=# \d test2 Table "public.test2" Column |Type | Modifiers -

Re: [HACKERS] Weird constraint output

2003-08-29 Thread Andreas Pflug
Christopher Kings-Lynne wrote: I have changed psql to use pg_get_viewdef(oid, true). I agree with Tom for not using it in dumps just yet though. While there still might be a pg_dump option to do this. Is there a function for getting nice constraint defs? Of course there is, use pg_get_constrain

Re: [HACKERS] ALTER TABLE

2003-08-29 Thread Hannu Krosing
Rod Taylor kirjutas R, 29.08.2003 kell 03:31: > I've been fiddling away on ALTER TABLE and have a few questions about a > possible datatype change. Just alter portions. > > I presume I'll need to do a table rewrite. What is the best way to > change a single datum? heap_modify() takes a single rel

Re: [HACKERS] Bumping block size to 16K on FreeBSD...

2003-08-29 Thread Mark Kirkwood
I am not 100% sure that 16K blocksize is the best size, for instance : Using FreebSD 5.1 - I got the best read and write performance using a blocksize of 32K with 4K fragments - [ reading and writing 8K blocks, ufs1 and ufs2 fs ]. I dont have the results in front of me, but I think I tried fs

Re: [HACKERS] Nasty problem in hash indexes

2003-08-29 Thread scott.marlowe
On Fri, 29 Aug 2003, Tom Lane wrote: > "scott.marlowe" <[EMAIL PROTECTED]> writes: > > On Thu, 28 Aug 2003, Neil Conway wrote: > >> On Thu, Aug 28, 2003 at 05:37:39PM -0400, Tom Lane wrote: > >>> Who's to say? We've found bugs in the btree logic recently, > >>> too. > >> > >> I'd rather print a

Re: [HACKERS] Nasty problem in hash indexes

2003-08-29 Thread Tom Lane
"scott.marlowe" <[EMAIL PROTECTED]> writes: > On Thu, 28 Aug 2003, Neil Conway wrote: >> On Thu, Aug 28, 2003 at 05:37:39PM -0400, Tom Lane wrote: >>> Who's to say? We've found bugs in the btree logic recently, >>> too. >> >> I'd rather print a loud warning when a hash index is created, but keep

Re: [HACKERS] Nasty problem in hash indexes

2003-08-29 Thread scott.marlowe
On Thu, 28 Aug 2003, Neil Conway wrote: > On Thu, Aug 28, 2003 at 05:37:39PM -0400, Tom Lane wrote: > > > If so, then how many other bugs are lurking in the hash index code > > > waiting to bite? > > > > Who's to say? We've found bugs in the btree logic recently, > > too. > > I'd rather print

Re: [HACKERS] FE/BE Protocol - Specific version

2003-08-29 Thread Bruce Badger
On Fri, 2003-08-29 at 13:23, Tom Lane wrote: > Bruce Badger <[EMAIL PROTECTED]> writes: > > Will it be possible to tell a PostgreSQL back end to use *only* the new > > version of the FE/BE protocol? > > That is, will it be possible to set up a database that will reject > > connection attempts that

Re: [HACKERS] Bumping block size to 16K on FreeBSD...

2003-08-29 Thread Curt Sampson
On Thu, 28 Aug 2003, David Schultz wrote: > (2) Make BLCKSZ a runtime constant, stored as part of the database. Now this I really like. It would make benchmarking 8K vs. 16K blocksizes much easer, as well as of course avoiding the "initdb required after rebuilding" problem. BTW, pretty much ever

Re: [HACKERS] Bumping block size to 16K on FreeBSD...

2003-08-29 Thread Neil Conway
On Fri, Aug 29, 2003 at 12:06:59AM -0300, Marc G. Fournier wrote: > "tuning documents" is *not* a valid reason for not doing this ... that's > like saying "we can make it faster on some operating systems, but because > we're going to have to modify the tuning documents, we're not going to do > it"

Re: [HACKERS] FE/BE Protocol - Specific version

2003-08-29 Thread Tom Lane
Bruce Badger <[EMAIL PROTECTED]> writes: > Will it be possible to tell a PostgreSQL back end to use *only* the new > version of the FE/BE protocol? > That is, will it be possible to set up a database that will reject > connection attempts that do not use the new protocol version? I cannot imagine

Re: [HACKERS] ALTER TABLE

2003-08-29 Thread Tom Lane
Rod Taylor <[EMAIL PROTECTED]> writes: > I've been fiddling away on ALTER TABLE and have a few questions about a > possible datatype change. Just alter portions. > I presume I'll need to do a table rewrite. What is the best way to > change a single datum? heap_modify() takes a single relation typ

Re: [HACKERS] Bumping block size to 16K on FreeBSD...

2003-08-29 Thread Marc G. Fournier
On Thu, 28 Aug 2003, Neil Conway wrote: > On Thu, Aug 28, 2003 at 01:00:44PM -0700, Sean Chittenden wrote: > > Other than you feeling uneasy about the possibility of uncovering bugs > > because this hasn't been widely done like this before, do you have any > > other concerns, or do you think the

Re: [HACKERS] [seanc@FreeBSD.org: Re: Performance tests I did with

2003-08-29 Thread Curt Sampson
On Wed, 27 Aug 2003, Sean Chittenden wrote: > FreeBSD uses 16K blocks for its FS... Actually, FreeBSD can use 8K blocks as well. The reason for using 16K blocks is not speeed, but to reduce filesystem overhead and, more importantly, to allow larger cylinder groups. But for a database with a lot o

Re: [HACKERS] Bumping block size to 16K on FreeBSD...

2003-08-29 Thread Neil Conway
On Thu, Aug 28, 2003 at 01:00:44PM -0700, Sean Chittenden wrote: > Other than you feeling uneasy about the possibility of uncovering bugs > because this hasn't been widely done like this before, do you have any > other concerns, or do you think the possibility of finding bugs very > likely? In cas

Re: [HACKERS] Code revision

2003-08-29 Thread Neil Conway
On Thu, Aug 28, 2003 at 08:06:05PM +0200, Mendola Gaetano wrote: > is not usefull have a mailing list in where people can > partecipate in a sort of "code revision" about the > actual code ? I think pgsql-patches is used for that purpose by some people. If you're implementing a major change, its

Re: [HACKERS] Linux2.6 overcommit behaviour

2003-08-29 Thread Neil Conway
On Thu, Aug 28, 2003 at 05:22:36PM +0530, Shridhar Daithankar wrote: > BTW, what is the sway of switching disk IO scheduler in 2.6? Could not find > any references to sysctl switching. Andrew Morton's TODO list still list it > as TODO. Sorry, I was mistaken: you can switch I/O schedulers by spec

Re: [HACKERS] Nasty problem in hash indexes

2003-08-29 Thread Neil Conway
On Thu, Aug 28, 2003 at 05:37:39PM -0400, Tom Lane wrote: > > If so, then how many other bugs are lurking in the hash index code > > waiting to bite? > > Who's to say? We've found bugs in the btree logic recently, > too. I'd rather print a loud warning when a hash index is created, but keep the

Re: [HACKERS] ALTER TABLE

2003-08-29 Thread Christopher Kings-Lynne
Do you have this working: ALTER TABLE / ADD COLUMN .. DEFAULT nextval('asdf')... (eg. a default that needs to be re-evaluated for each row) Also, did you remember about checking domain constraints, etc.? Chris - Original Message - From: "Rod Taylor" <[EMAIL PROTECTED]> To: "PostgreSQL

Re: [HACKERS] Weird constraint output

2003-08-29 Thread Christopher Kings-Lynne
> Obviously psql uses either use pg_constraint.consrc or > pg_get_expr(conbin, conrelid) which both will give this lot of > parentheses, so it's not a bug, but a feature > For easier reengineering, I invented several pg_get_xxx functions with a > pretty-print option, which omits this messy parenthe

Re: [HACKERS] Bumping block size to 16K on FreeBSD...

2003-08-29 Thread Sean Chittenden
> > > Early performance tests on my laptop suggest it's about 8% > > > faster for writing when both the FS and PostgreSQL use 16K > > > blocks. > > > > BTW, I don't really believe that one set of tests, conducted on > > one single machine, are anywhere near enough justification for > > changing thi

Re: [HACKERS] [cguttesen@yahoo.dk: Re: Some additional tests run on

2003-08-29 Thread Marc G. Fournier
what sort of hardware was this run on? On Thu, 28 Aug 2003, Sean Chittenden wrote: > 'nother test in support of 16K blocks for FreeBSD, this time it was > 25% faster to import. -sc > > -- > Sean Chittenden > ---(end of broadcast)--- TIP 1: subscr

[HACKERS] FE/BE Protocol - Specific version

2003-08-29 Thread Bruce Badger
Will it be possible to tell a PostgreSQL back end to use *only* the new version of the FE/BE protocol? That is, will it be possible to set up a database that will reject connection attempts that do not use the new protocol version? Thanks, Bruce signature.asc Description: This is a di

Re: [HACKERS] Bumping block size to 16K on FreeBSD...

2003-08-29 Thread David Schultz
On Thu, Aug 28, 2003, Tom Lane wrote: > Sean Chittenden <[EMAIL PROTECTED]> writes: > > Are there any objections > > to me increasing the block size for FreeBSD installations to 16K for > > the upcoming 7.4 release? > > I'm a little uncomfortable with introducing a cross-platform variation > in th

Re: [HACKERS] Bumping block size to 16K on FreeBSD...

2003-08-29 Thread David Schultz
On Thu, Aug 28, 2003, scott.marlowe wrote: > On Thu, 28 Aug 2003, Marc G. Fournier wrote: > > On Thu, 28 Aug 2003, Thomas Swan wrote: > > > > > Has anyone looked at changing the default block size across the board > > > and what the performance improvements/penalties might be? Hardware has > > >

[HACKERS] [cguttesen@yahoo.dk: Re: Some additional tests run on my performance testing]

2003-08-29 Thread Sean Chittenden
'nother test in support of 16K blocks for FreeBSD, this time it was 25% faster to import. -sc -- Sean Chittenden --- Begin Message --- Hi. I'm implementing postgresql 7.3.4 on FreeBSD 5.1, and decided to place the pgsql-folder on it's own partition so it was easier to test which blocksize to go

[HACKERS] FE/BE Protocol - Specific version

2003-08-29 Thread Bruce Badger
Will it be possible to tell a PostgreSQL back end to use *only* the new version of the FE/BE protocol? That is, will it be possible to set up a database that will reject connection attempts that do not use the new protocol version? Thanks, Bruce ---(end of bro

[HACKERS] ALTER TABLE

2003-08-29 Thread Rod Taylor
I've been fiddling away on ALTER TABLE and have a few questions about a possible datatype change. Just alter portions. I presume I'll need to do a table rewrite. What is the best way to change a single datum? heap_modify() takes a single relation type where I will need to deal with different type

Re: [HACKERS] Bumping block size to 16K on FreeBSD...

2003-08-29 Thread Marc G. Fournier
Sean, can we get a copy of your test set? And any scripts that you have for running the tests? On Thu, 28 Aug 2003, Tom Lane wrote: > Sean Chittenden <[EMAIL PROTECTED]> writes: > > Early performance tests on my laptop suggest it's about 8% faster for > > writing when both the FS and PostgreSQ