[GENERAL] visibility map - what do i miss?

2008-12-06 Thread hubert depesz lubaczewski
hi, i tried to test new "visibility map" feature. to do so i: 1. fetched postgresql sources from cvs 2. compiled 3. turned autovacuum off 4. started pg 5. ran this queries: - CREATE TABLE test_1 (i INT4); - CREATE TABLE test_2 (i INT4); - CREATE TABLE test_3 (i INT4); - CREATE TABLE test_4

[GENERAL] posible BUG on psql... or maybe worst

2008-12-06 Thread Martin Marques
I was making some table creation on one of our development DB and found that psql's \dt has problems showing all tables available. Basically, if you have to tables with the same name in different schemas, only one will be listed (the one on the schema that is first in the search_path). IMHO, \

Re: [GENERAL] posible BUG on psql... or maybe worst

2008-12-06 Thread Diego Schulz
On Sat, Dec 6, 2008 at 8:50 AM, Martin Marques <[EMAIL PROTECTED]>wrote: > I was making some table creation on one of our development DB and found > that psql's \dt has problems showing all tables available. Basically, if you > have to tables with the same name in different schemas, only one will

Re: [GENERAL] posible BUG on psql... or maybe worst

2008-12-06 Thread Martin Marques
Diego Schulz escribió: Hi, Schemas are a lot like directories at operating system level (except that can't be nested). When you ls (or dir) in /home/martin/ , normally you don't expect to see /home/johnny/ listed as well. But if you really want to see all tables, try adjusting search_pa

Re: [GENERAL] posible BUG on psql... or maybe worst

2008-12-06 Thread Diego Schulz
On Sat, Dec 6, 2008 at 10:00 AM, Martin Marques <[EMAIL PROTECTED]>wrote: > Diego Schulz escribió: > >> >> >> Hi, >> >> >> Schemas are a lot like directories at operating system level (except that >> can't be nested). >> When you ls (or dir) in /home/martin/ , normally you don't expect to see >>

Re: [GENERAL] visibility map - what do i miss?

2008-12-06 Thread Merlin Moncure
On Sat, Dec 6, 2008 at 6:46 AM, hubert depesz lubaczewski <[EMAIL PROTECTED]> wrote: > hi, > i tried to test new "visibility map" feature. here's the test again in a more illustrative way: postgres=# INSERT INTO test_1 SELECT generate_series(1, 1); INSERT 0 1 Time: 136229.455 ms po

[GENERAL] Unique constaint violated without being violated

2008-12-06 Thread Sebastian Tennant
Hi all, Here's an odd one: itidb=> \d joblist; Table "public.joblist" Column | Type | Modifiers ---+--+--- full_name | character varying(64)| not null email_address | charact

Re: [GENERAL] Unique constaint violated without being violated

2008-12-06 Thread Merlin Moncure
On Sat, Dec 6, 2008 at 10:27 AM, Sebastian Tennant <[EMAIL PROTECTED]> wrote: > itidb=> update joblist set (full_name, email_address, recruiter, > itidb(> subscribed, verified, created_at, updated_at) = > itidb-> ('[name hidden]', '[email address hidden]', false, true > itidb(> true, current_ti

Re: [GENERAL] visibility map - what do i miss?

2008-12-06 Thread Merlin Moncure
On Sat, Dec 6, 2008 at 8:38 AM, Merlin Moncure <[EMAIL PROTECTED]> wrote: > So what do we gather from this? Well, the feature works as > advertised. I think that as long as your updates are not uniformly > distributed across pages, vismap is a huge performance win for many > workloads. I think t

Re: [GENERAL] Resp.: Automatic insert statement generator?

2008-12-06 Thread Sebastian Tennant
Hi Osvaldo, Your list_fields function looked interesting to me so I tried it out and it only worked for one of the five or so tables in the database I was connected to at the time. More concerning is the fact that I can't seem to drop it. I'm told it doesn't exist, and then I use it to prove (to

Re: [GENERAL] Unique constaint violated without being violated

2008-12-06 Thread Sebastian Tennant
Quoth "Merlin Moncure" <[EMAIL PROTECTED]>: > It looks to me like you are setting the whole table to the same > address in the update statement (no where clause)...so of course you'd > get the error. Maybe you want to do an insert statement? > > merlin Doh! Thanks Merlin. I'm so glad it's just

Re: [GENERAL] Resp.: Automatic insert statement generator?

2008-12-06 Thread Raymond O'Donnell
On 06/12/2008 16:02, Sebastian Tennant wrote: > Here's it working: > > itidb=> select list_fields('joblist'); > Here's me trying to drop it, only to be told it doesn't exist: > > itidb=> drop function list_fields(); > ERROR: function list_fields() does not exist You need to specify the ar

Re: [GENERAL] Resp.: Automatic insert statement generator?

2008-12-06 Thread Sebastian Tennant
Quoth Raymond O'Donnell <[EMAIL PROTECTED]>: > On 06/12/2008 16:02, Sebastian Tennant wrote: >> Here's it working: >> >> itidb=> select list_fields('joblist'); > > > >> Here's me trying to drop it, only to be told it doesn't exist: >> >> itidb=> drop function list_fields(); >> ERROR: functio

Re: [GENERAL] posible BUG on psql... or maybe worst

2008-12-06 Thread Bruce Momjian
Diego Schulz wrote: > > Sorry, forgot to say that I SET search_path acordinlly to see relations > > from both schemas. But whan the table has the same name I only get the one > > from the first schema in the search_path. > > > > > I can confirm the behaviour you described. Yes, \dt was designed

Re: [GENERAL] Planner picking topsey turvey plan?

2008-12-06 Thread Glyn Astill
Anyone? --- On Fri, 5/12/08, Glyn Astill <[EMAIL PROTECTED]> wrote: > From: Glyn Astill <[EMAIL PROTECTED]> > Subject: [GENERAL] Planner picking topsey turvey plan? > To: pgsql-general@postgresql.org > Date: Friday, 5 December, 2008, 2:23 PM > Hi people, > > Does anyone know how I can change wh

Re: [ADMIN] [GENERAL] Planner picking topsey turvey plan?

2008-12-06 Thread Scott Marlowe
what does explain analyze yourqueryhere say? On Sat, Dec 6, 2008 at 1:33 PM, Glyn Astill <[EMAIL PROTECTED]> wrote: > Anyone? > > > --- On Fri, 5/12/08, Glyn Astill <[EMAIL PROTECTED]> wrote: > >> From: Glyn Astill <[EMAIL PROTECTED]> >> Subject: [GENERAL] Planner picking topsey turvey plan? >> To

Re: [ADMIN] [GENERAL] Planner picking topsey turvey plan?

2008-12-06 Thread Glyn Astill
Explain analyze below, DB=# explain analyze select a.artist, a.date, b.mult_ref, b.items, b.parts from (show a inner join orders b on a.code = b.show) where artist = 'ALKALINE TRIO'; QUERY PLAN ---