[GENERAL] Function query plan

2006-05-05 Thread Paul Mackay
I understand that the query plan of a function is determined at CREATION and remains the same whatever the parameter(s) value. I suppose then that this plan is stored somewhere in a system table ? Is it possible to consult this plan ? Thanks,Paul

[GENERAL] Updating a primary key

2006-03-22 Thread Paul Mackay
I was surprised to see that PostgreSQL doesn't execute a multiple row update as an atomic operation, but apparently one row at a time, with primary key uniqueness being checked after each row update. For example, let's say we have this table : CREATE TABLE mytable ( pos int PRIMARY KEY, t text );in

Re: [GENERAL] Utility of GRANT EXECUTE

2006-03-14 Thread Paul Mackay
Is there a way to change the default prvilege on functions, i.e. that like for tables, only the creator has privilege on it by default ?Thanks.PaulOn 3/14/06, Michael Fuhr <[EMAIL PROTECTED]> wrote:On Tue, Mar 14, 2006 at 09:24:52AM +0100, Paul Mackay wrote: > It seems that any user has

[GENERAL] Utility of GRANT EXECUTE

2006-03-14 Thread Paul Mackay
It seems that any user has the right to execute a function, whether or not it has been granted the EXECUTE privilege on it. Even a REVOKE EXECUTE has no impact. A privilige error will be raised only if the function tries to access an object (ex.: a table) for witch the user doesn't have the appropr

[GENERAL] Physical column size

2006-03-03 Thread Paul Mackay
Hi,I've created a table like this : CREATE TABLE tmp_A (c "char",i int4);And another one CREATE TABLE tmp_B (i int4, ii int4);I then inserted a bit more than 19 million rows in each table (exactly the same number of rows in each). The end result is that the physical size on disk used by table tmp_