Re: [HACKERS] regression failure on latest CVS

2005-07-26 Thread Larry Rosenman
On Jul 26 2005, ohp@pyrenet.fr wrote: On Mon, 25 Jul 2005, Tom Lane wrote: FWIW, I just checked that CVS tip works OK for me without these options, with either integer or float timestamps. I don't see any new warnings, either. It could well be that the recent changes have introduced some

Re: [HACKERS] regression failure on latest CVS

2005-07-26 Thread ohp
On Mon, 25 Jul 2005, Tom Lane wrote: Date: Mon, 25 Jul 2005 23:26:20 -0400 From: Tom Lane [EMAIL PROTECTED] To: Larry Rosenman ler@lerctr.org Cc: ohp@pyrenet.fr, 'pgsql-hackers list' pgsql-hackers@postgresql.org Subject: Re: [HACKERS] regression failure on latest CVS Larry Rosenman

Re: [HACKERS] Rollback issue with SET ROLE

2005-07-26 Thread Stephen Frost
* Tom Lane ([EMAIL PROTECTED]) wrote: Ideally the ROLLBACK should have restored the ROLE setting that obtained prior to BEGIN. The reason it doesn't is that the ROLLBACK effectively does a SET SESSION AUTHORIZATION prior-auth-value, and that naturally clears the ROLE setting. In this case

Re: [HACKERS] Rollback issue with SET ROLE

2005-07-26 Thread Tom Lane
Stephen Frost [EMAIL PROTECTED] writes: * Tom Lane ([EMAIL PROTECTED]) wrote: Ideally the ROLLBACK should have restored the ROLE setting that obtained prior to BEGIN. The reason it doesn't is that the ROLLBACK effectively does a SET SESSION AUTHORIZATION prior-auth-value, and that naturally

Re: [HACKERS] [PATCHES] Roles - SET ROLE Updated

2005-07-26 Thread Tom Lane
I've committed changes to add a rolinherit flag to pg_authid as per discussion. The pg_has_role function now distinguishes USAGE rights on a role (do you currently have the privileges of that role) from MEMBER rights (do you have the ability to SET ROLE to that role). A couple of loose ends

Re: [HACKERS] [PATCHES] Roles - SET ROLE Updated

2005-07-26 Thread Stephen Frost
* Tom Lane ([EMAIL PROTECTED]) wrote: I've committed changes to add a rolinherit flag to pg_authid as per discussion. The pg_has_role function now distinguishes USAGE rights on a role (do you currently have the privileges of that role) from MEMBER rights (do you have the ability to SET ROLE

Re: [HACKERS] More buildfarm stuff

2005-07-26 Thread Jim C. Nasby
On Mon, Jul 25, 2005 at 05:02:02PM -0500, Jim C. Nasby wrote: Can you try rebuilding python and it's dependencies WITHOUT_THREADS? I think that would get us where we need? Worked: http://pgbuildfarm.org/cgi-bin/show_log.pl?nm=octopusdt=2005-07-26%2015:29:33 So the question now is: how do

Re: [HACKERS] More buildfarm stuff

2005-07-26 Thread Larry Rosenman
On Jul 26 2005, Jim C. Nasby wrote: On Mon, Jul 25, 2005 at 05:02:02PM -0500, Jim C. Nasby wrote: Can you try rebuilding python and it's dependencies WITHOUT_THREADS? I think that would get us where we need? Worked:

Re: [HACKERS] More buildfarm stuff

2005-07-26 Thread Tom Lane
Larry Rosenman ler@lerctr.org writes: On Jul 26 2005, Jim C. Nasby wrote: So the question now is: how do we fix the issue with threaded python? how do we get libc_r into the mix on FreeBSD 4.11? A possible compromise is to add -lc_r to LIBS if (a) --enable-python and (b) platform is one of

Re: [HACKERS] Segfault Exiting psql

2005-07-26 Thread David Wheeler
On Jul 15, 2005, at 5:13 PM, David Wheeler wrote: No. I'm using the readline that comes with Tiger, FWIW. If you tell me how to create a stack trace, I'll post it somewhere for you to see. I don't know C, myself. Didn't see a reply to this, but if it makes a difference, I just learned

Re: [HACKERS] For review: Server instrumentation patch

2005-07-26 Thread Magnus Hagander
If you want to secure your system against a superuser()-level intrusion then you need to secure the unix account, or disable creation of C-language and other untrusted languages (at least). Very likely --- which is why Magnus' idea of an explicit switch to prevent superuser filesystem

[HACKERS] ENUM type

2005-07-26 Thread Jim C. Nasby
On Tue, Jul 26, 2005 at 01:09:11PM -0700, Jeff Davis wrote: Chris Travers wrote: How hard would it be to automatically create enum_ tables in the back ground to emulate MySQL's enum type? Sort of like we do with SERIAL datatypes... Part of the problem is that MySQL's enum type is so

[HACKERS] VACUUM DATABASE

2005-07-26 Thread Simon Riggs
I'd like to suggest altering the syntax of VACUUM so that it is possible to issue the command VACUUM DATABASE. The keyword DATABASE would be optional, to allow backward compatibility. The reasons for this are better understanding and comprehension. S many people are confused about the

Re: [HACKERS] For review: Server instrumentation patch

2005-07-26 Thread Tom Lane
Magnus Hagander [EMAIL PROTECTED] writes: If you want to secure your system against a superuser()-level intrusion then you need to secure the unix account, or disable creation of C-language and other untrusted languages (at least). Very likely --- which is why Magnus' idea of an explicit

Re: [HACKERS] For review: Server instrumentation patch

2005-07-26 Thread Magnus Hagander
If you want to secure your system against a superuser()-level intrusion then you need to secure the unix account, or disable creation of C-language and other untrusted languages (at least). Very likely --- which is why Magnus' idea of an explicit switch to prevent superuser

Re: [HACKERS] VACUUM DATABASE

2005-07-26 Thread Alvaro Herrera
On Tue, Jul 26, 2005 at 09:30:20PM +0100, Simon Riggs wrote: I'd like to suggest altering the syntax of VACUUM so that it is possible to issue the command VACUUM DATABASE. The keyword DATABASE would be optional, to allow backward compatibility. Huh, so why not have an optional LAZY? I

Re: [HACKERS] For review: Server instrumentation patch

2005-07-26 Thread Tom Lane
Magnus Hagander [EMAIL PROTECTED] writes: I'm OK with them even without the directory limitation as long as there's a way to disable them. However, I fear the whole thing has to wait for 8.2 at this point. That would be very bad - considering it just missed 8.0 as well. [ shrug... ] The

Re: [HACKERS] More buildfarm stuff

2005-07-26 Thread Andrew - Supernews
On 2005-07-26, Larry Rosenman ler@lerctr.org wrote: So the question now is: how do we fix the issue with threaded python? how do we get libc_r into the mix on FreeBSD 4.11? You'd have to build the backend with -pthread. Including -lc_r explicitly when linking stuff on freebsd will usually

Re: [HACKERS] Checkpoint cost, looks like it is WAL/CRC

2005-07-26 Thread Simon Riggs
On Fri, 2005-07-22 at 19:11 -0400, Tom Lane wrote: Hmm. Eyeballing the NOTPM trace for cases 302912 and 302909, it sure looks like the post-checkpoint performance recovery is *slower* in the latter. And why is 302902 visibly slower overall than 302905? I thought for a bit that you had gotten

[HACKERS] Interesting COPY edge case...

2005-07-26 Thread Chris Browne
Just ran into a fascinating edge case. One of our folks was building a stored function, and ran into an odd error when trying to COPY to stdout. Here's a characteristic example: create or replace function build_table (integer) returns integer as ' begin execute ''copy foo to stdout;'';

Re: [HACKERS] For review: Server instrumentation patch

2005-07-26 Thread Dave Page
-Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: 26 July 2005 22:01 To: Magnus Hagander Cc: Stephen Frost; Andrew Dunstan; Andreas Pflug; Bruce Momjian; Dave Page; PostgreSQL-development Subject: Re: [HACKERS] For review: Server instrumentation patch Magnus

Re: [HACKERS] ENUM type

2005-07-26 Thread Jochem van Dieten
On 7/26/05, Jim C. Nasby wrote: On Tue, Jul 26, 2005 at 01:09:11PM -0700, Jeff Davis wrote: Ultimately to do it in a general way I think we'd need functions that return a type that can be used in a table definition. Aside from the many problems I don't know about, there are two other

Re: [HACKERS] Checkpoint cost, looks like it is WAL/CRC

2005-07-26 Thread Josh Berkus
Simon, We should run tests with much higher wal_buffers numbers to nullify the effect described above and reduce contention. That way we will move towards the log disk speed being the limiting factor, patch or no patch. I've run such tests, at a glance they do seem to improve performance. I

[HACKERS] RESULT_OID Bug

2005-07-26 Thread Kevin McArthur
Recent cvs versions are failing the following script; create table oidtest(a time default now()) with oids; CREATE OR REPLACE FUNCTION oidtest() RETURNS integer AS $oidtest$DECLAREinsert_oid_var INTEGER;BEGININSERT INTO oidtest DEFAULT VALUES;GET DIAGNOSTICS insert_oid_var =

Re: [HACKERS] ENUM type

2005-07-26 Thread Jim C. Nasby
On Wed, Jul 27, 2005 at 12:11:47AM +0200, Jochem van Dieten wrote: On 7/26/05, Jim C. Nasby wrote: On Tue, Jul 26, 2005 at 01:09:11PM -0700, Jeff Davis wrote: Ultimately to do it in a general way I think we'd need functions that return a type that can be used in a table definition. Aside

Re: [HACKERS] Checkpoint cost, looks like it is WAL/CRC

2005-07-26 Thread Tom Lane
Josh Berkus josh@agliodbs.com writes: We should run tests with much higher wal_buffers numbers to nullify the effect described above and reduce contention. That way we will move towards the log disk speed being the limiting factor, patch or no patch. I've run such tests, at a glance they do

Re: [HACKERS] RESULT_OID Bug

2005-07-26 Thread Michael Fuhr
On Tue, Jul 26, 2005 at 03:36:26PM -0700, Kevin McArthur wrote: Recent cvs versions are failing the following script; create table oidtest(a time default now()) with oids; CREATE OR REPLACE FUNCTION oidtest() RETURNS integer AS $oidtest$ DECLARE insert_oid_var INTEGER; BEGIN

Re: [HACKERS] RESULT_OID Bug

2005-07-26 Thread Kevin McArthur
I cannot repoduce your experience with this bug. No matter what I do, reconnect session or otherwise, it never returns a proper oid on the newer cvs vers (I suspect it may be related to the roles update) Kevin - Original Message - From: Michael Fuhr [EMAIL PROTECTED] To: Kevin

Re: [HACKERS] ENUM type

2005-07-26 Thread Andrew Dunstan
Jim C. Nasby wrote: On Wed, Jul 27, 2005 at 12:11:47AM +0200, Jochem van Dieten wrote: On 7/26/05, Jim C. Nasby wrote: On Tue, Jul 26, 2005 at 01:09:11PM -0700, Jeff Davis wrote: Ultimately to do it in a general way I think we'd need functions that return a type that can be

Re: [HACKERS] RESULT_OID Bug

2005-07-26 Thread Michael Fuhr
On Tue, Jul 26, 2005 at 04:31:21PM -0700, Kevin McArthur wrote: I cannot repoduce your experience with this bug. No matter what I do, reconnect session or otherwise, it never returns a proper oid on the newer cvs vers (I suspect it may be related to the roles update) Hmmm...my system is only

Re: [HACKERS] RESULT_OID Bug

2005-07-26 Thread Kevin McArthur
bash-2.05b$ ./createdb test3 CREATE DATABASE bash-2.05b$ ./createlang plpgsql test3 bash-2.05b$ ./psql test3 Welcome to psql 8.1devel, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help with psql commands \g

Re: [HACKERS] Checkpoint cost, looks like it is WAL/CRC

2005-07-26 Thread Josh Berkus
Tom, I have no idea whether the DBT benchmarks would benefit at all, but given that they are affected positively by increasing wal_buffers, they must have a fair percentage of not-small transactions. Even if they don't, we'll have series tests for DW here at GreenPlum soon, and I'll bet

Re: [HACKERS] Couple of minor buildfarm issues

2005-07-26 Thread Andrew Dunstan
Andrew Dunstan wrote: At one stage I thought of stealing some vertical space for 8 or 10 columns of 10 pixels or so to show the state of the most importand build flag. I still might do that, if I can standardise the OS and Compiler info so that they get shorter (e.g. is just knowing that we

Re: [HACKERS] RESULT_OID Bug

2005-07-26 Thread Michael Fuhr
On Tue, Jul 26, 2005 at 04:31:21PM -0700, Kevin McArthur wrote: I cannot repoduce your experience with this bug. No matter what I do, reconnect session or otherwise, it never returns a proper oid on the newer cvs vers (I suspect it may be related to the roles update) I'm seeing varying

Re: [HACKERS] Couple of minor buildfarm issues

2005-07-26 Thread Larry Rosenman
Given the current issue with the SCO Optimizer and --enable-debug, I'd like to keep it on the list. I'd also like to see a way to run both --enable-debug and not --enable-debug runs either alternately or With a command line arg. Same with the --enable-integer-datetimes switch. Just my

Re: [HACKERS] Couple of minor buildfarm issues

2005-07-26 Thread Michael Glaesemann
On Jul 27, 2005, at 11:27 AM, Andrew Dunstan wrote: I have reduced some of the clutter from OS names/versions and compiler names/versions, Out of curiosity, how did you do this? Did you update the original registration data or make some kind of mapping? and can reduce some more in the

Re: [HACKERS] Couple of minor buildfarm issues

2005-07-26 Thread Michael Glaesemann
On Jul 27, 2005, at 11:42 AM, Larry Rosenman wrote: Given the current issue with the SCO Optimizer and --enable-debug, I'd like to keep it on the list. I'd also like to see a way to run both --enable-debug and not -- enable-debug runs either alternately or With a command line arg. Same

Re: [HACKERS] VACUUM DATABASE

2005-07-26 Thread Tom Lane
Simon Riggs [EMAIL PROTECTED] writes: I'd like to suggest altering the syntax of VACUUM so that it is possible to issue the command VACUUM DATABASE. The keyword DATABASE would be optional, to allow backward compatibility. This would require converting DATABASE from an unreserved keyword into a

Re: [HACKERS] Couple of minor buildfarm issues

2005-07-26 Thread Andrew Dunstan
Larry Rosenman wrote: I'd also like to see a way to run both --enable-debug and not --enable-debug runs either alternately or With a command line arg. Same with the --enable-integer-datetimes switch. In general we don't want you changing the settings much. That goes to the issue of

Re: [HACKERS] Couple of minor buildfarm issues

2005-07-26 Thread Andrew Dunstan
Michael Glaesemann wrote: On Jul 27, 2005, at 11:27 AM, Andrew Dunstan wrote: I have reduced some of the clutter from OS names/versions and compiler names/versions, Out of curiosity, how did you do this? Did you update the original registration data or make some kind of mapping?

[HACKERS] Duplicate object names in GRANT

2005-07-26 Thread Gavin Sherry
Hi all, I ran across this yesterday on HEAD: template1=# grant select on foo, foo to swm; ERROR: tuple already updated by self We could do away with the error by producing a unique list of object names -- but that would impose an extra cost on the common case. It seems to me that producing a

[HACKERS] psql as an execve(2) interpreter

2005-07-26 Thread brook
I would like to use pgsl as an interpreter (in the sense of execve(2)). In short, if a file begins with the line #! /path/to/psql -f it should be interpretable by psql. The normal semantics of execve(2) ensure that this will work perfectly (indeed a file containing #!/path/to/psql

Re: [HACKERS] RESULT_OID Bug

2005-07-26 Thread Tom Lane
Michael Fuhr [EMAIL PROTECTED] writes: Is anybody with a deeper understanding of the code looking at this? I tried to reproduce the problem ... no joy ... regards, tom lane ---(end of broadcast)--- TIP 6: explain analyze

Re: [HACKERS] RESULT_OID Bug

2005-07-26 Thread Michael Fuhr
On Wed, Jul 27, 2005 at 12:08:18AM -0400, Tom Lane wrote: Michael Fuhr [EMAIL PROTECTED] writes: Is anybody with a deeper understanding of the code looking at this? I tried to reproduce the problem ... no joy ... Hmmm...not even with the example that starts from initdb? I'm up to date with

Re: [HACKERS] psql as an execve(2) interpreter

2005-07-26 Thread Tom Lane
[EMAIL PROTECTED] writes: I would like to use pgsl as an interpreter (in the sense of execve(2)). In short, if a file begins with the line #! /path/to/psql -f it should be interpretable by psql. The normal semantics of execve(2) ensure that this will work perfectly (indeed a

Re: [HACKERS] Duplicate object names in GRANT

2005-07-26 Thread Tom Lane
Gavin Sherry [EMAIL PROTECTED] writes: I ran across this yesterday on HEAD: template1=# grant select on foo, foo to swm; ERROR: tuple already updated by self Seems to fail similarly in every version back to 7.2; probably further, but that's all I have running at the moment. We could do

Re: [HACKERS] RESULT_OID Bug

2005-07-26 Thread Tom Lane
Michael Fuhr [EMAIL PROTECTED] writes: On Wed, Jul 27, 2005 at 12:08:18AM -0400, Tom Lane wrote: I tried to reproduce the problem ... no joy ... Hmmm...not even with the example that starts from initdb? Nope... Could this be platform-specific? Seems that way. I tried it on HPUX

Re: [HACKERS] psql as an execve(2) interpreter

2005-07-26 Thread brook
Tom Lane writes: Given that # is not a comment introducer in SQL, I would consider it a bug if it did. I understand that # is not a comment introducer in SQL. I am wondering if it would be sensible to introduce an exception for the first line of a file. To prevent problems the behavior