Re: [HACKERS] Proposal to sync SET ROLE and pg_stat_activity

2008-08-28 Thread Grant Finnemore
Hi Alvaro, Alvaro Herrera wrote: Grant Finnemore wrote: Well, pg_stat_activity isn't really the problem here, because as you point out, it's just a view, and I could certainly redefine the view. The limiting factor is that the backend doesn't push the role name changes to the

Re: [HACKERS] Proposal to sync SET ROLE and pg_stat_activity

2008-08-28 Thread Grant Finnemore
Hi Bernd, Bernd Helmle wrote: --On Mittwoch, August 27, 2008 09:35:03 +0200 Grant Finnemore <[EMAIL PROTECTED]> wrote: I have a session pool, where all connections to the database are obtained as a superuser. On issuing connections to the client, we invoke either SET ROLE or SET S

Re: [HACKERS] Proposal to sync SET ROLE and pg_stat_activity

2008-08-27 Thread Grant Finnemore
Hi Euler, Euler Taveira de Oliveira wrote: Grant Finnemore escreveu: Invoking pg_stat_activity after the SET ROLE is changed will however leave the usename unchanged. You're right. Because, as you spotted, usename is synonym of session usename. > The one problem with this mapping

[HACKERS] Proposal to sync SET ROLE and pg_stat_activity

2008-08-25 Thread Grant Finnemore
e general support for this proposal. Comments? Regards, Grant Finnemore Index: src/backend/postmaster/pgstat.c === RCS file: /projects/cvsroot/pgsql/src/backend/postmaster/pgstat.c,v retrieving revision 1.179 diff -c -r1.179 pgstat.c

[HACKERS] Backend crash during explain

2007-05-31 Thread Grant Finnemore
Hi, This is on Intel OSX, anon CVS download today. Build process:- 1. make distclean 2. ./configure --enable-debug --enable-cassert --enable-integer-datetimes --prefix=/Users/grant/Development/bin/pgsql --enable-depend 3. make all install The query with no EXPLAIN (ANALYSE) completes fine.

Re: [HACKERS] SQL-Invoked Procedures for 8.1

2004-09-23 Thread Grant Finnemore
Hi Magnus, Yes, this is the situation that I have been thinking about. Specifically when a single stored procedure returns many recordsets. Perhaps I should also clarify that the "spec" I have been using is the JDK javadoc documentation. Using java with Magnus' procedure: CallableStatement cs = c

Re: [HACKERS] SQL-Invoked Procedures for 8.1

2004-09-22 Thread Grant Finnemore
gards, Grant Gavin Sherry wrote: On Thu, 23 Sep 2004, Grant Finnemore wrote: Hi Gavin, Although I have not read the SQL 2003 spec, my recollection of other database products' stored procs differed from your description in one significant way, namely that they could return multiple (and varie

Re: [HACKERS] SQL-Invoked Procedures for 8.1

2004-09-22 Thread Grant Finnemore
Hi Gavin, Although I have not read the SQL 2003 spec, my recollection of other database products' stored procs differed from your description in one significant way, namely that they could return multiple (and varied) sets of rows. For example, a stored proc could do a SELECT over foo and then a SE

Re: [HACKERS] Failed assertion, CVS head

2004-09-10 Thread Grant Finnemore
Ok, will do. Thanks. Tom Lane wrote: Grant Finnemore <[EMAIL PROTECTED]> writes: I'm afraid that I did not get a core dump. Sorry. My normal configure includes both debug and cassert - is there anything else I should set to ensure core dumps are generated? Check "ulimit -c"

Re: [HACKERS] Failed assertion, CVS head

2004-09-10 Thread Grant Finnemore
I'm afraid that I did not get a core dump. Sorry. My normal configure includes both debug and cassert - is there anything else I should set to ensure core dumps are generated? Regards, Grant Tom Lane wrote: Grant Finnemore <[EMAIL PROTECTED]> writes: TRAP: FailedAssertion("

Re: [HACKERS] Failed assertion, CVS head

2004-09-10 Thread Grant Finnemore
It's happened again, and in both cases seems to be on a call to VACUUM FULL Grant Finnemore wrote: Hi, I am using a version of PostgreSQL compiled from a CVS update of yesterday, and compiled with make clean all make install One client connection to the database doing routine and low v

[HACKERS] Failed assertion, CVS head

2004-09-10 Thread Grant Finnemore
Hi, I am using a version of PostgreSQL compiled from a CVS update of yesterday, and compiled with make clean all make install One client connection to the database doing routine and low volume population scripts (using schemas) After several normal runs of the population script, a run caused th

Re: [HACKERS] Performance with new nested-xacts code

2004-06-30 Thread Grant Finnemore
Hi Tom, As requested - although the results are all over the place... :-( One interesting factor in these tests is that the max tps without the new code was 74.7, with the new code, 85.8. This is a Sony Laptop, slow IDE disk, Fedora Core 2 [EMAIL PROTECTED] pgsql-HEAD]$ uname -a Linux localhost.loc

[HACKERS] Compile breakage

2004-05-21 Thread Grant Finnemore
RHL 9.0 cvs HEAD, fresh update make maintainer-clean ./configure --with-java --prefix=/home/grant/bin/pgsql/ \ --with-integer-datetimes --enable-debug --enable-cassert make yields: gcc -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/include -D_GNU_S

[HACKERS] TRAP during backend startup

2004-04-07 Thread Grant Finnemore
Hi all, After an installation from CVS tip, I start the postmaster with the -d(anything) flag. The postmaster starts up normally. I then try to connect using psql, and either a TRAP is triggered (not using -A 0) or an invalid cache id is found (using -A 0) When I start the postmaster without the -

Re: [HACKERS] protocol change in 7.4

2002-11-04 Thread Grant Finnemore
Questions have arisen during discussions about errors relating to how to support error codes without changing the FE/BE protocols. (see TODO.detail/error) Now that the protocol is up for revision, how about supporting sql state strings, error codes, and other information directly in the protocol.

Re: [HACKERS] Does setof record in plpgsql work well in 7.3?

2002-09-29 Thread Grant Finnemore
( foo integer, bar text ); Now, the declare block has the following:- DECLARE rec my_return_type%ROWTYPE The function definition then becomes:- CREATE OR REPLACE FUNCTION myfunc(integer) RETURNS SETOF my_return_type ... Regards, Grant Finnemore Masaru Sugawara wrote: > Hi, all >

Re: [HACKERS] Failure to recognise new database

2000-11-17 Thread Grant Finnemore
hat Hiroshi thought I broke a couple days ago. > Let me know... Yes, I am running WAL enabled. > > > regards, tom lane Regards, Grant -- > Poorly planned software requires a genius to write it > and a hero to use it. Grant Finnemore BSc(Eng) (mailto:[EMA

[HACKERS] Failure to recognise new database

2000-11-16 Thread Grant Finnemore
test You are now connected to database test. Is it just me? Regards, Grant -- > Poorly planned software requires a genius to write it > and a hero to use it. Grant Finnemore BSc(Eng) (mailto:[EMAIL PROTECTED]) Software Engineer Universal Computer Services Tel (+27)(11)712-1366PO

[HACKERS] Re: [SQL] renaming columns... danger?

2000-10-28 Thread Grant Finnemore
also, and this may actually the source of the problem, > while scanning my full (schema and data) dump, I > noticed that the contents of table pga_layout also had > the old values of columns that I have renamed. > > I'm very frightened right now, because I'm rather > depe

[HACKERS] Re: [SQL] renaming columns... danger?

2000-10-27 Thread Grant Finnemore
also, and this may actually the source of the problem, > while scanning my full (schema and data) dump, I > noticed that the contents of table pga_layout also had > the old values of columns that I have renamed. > > I'm very frightened right now, because I'm rather > depe