Re: [GENERAL] Failure to use indexes (fwd)

2005-08-03 Thread Edmund Dengler
mapping a class hierarchy to > table(s). A few techniques are described in Fowler's > Patterns of Enterprise Application Architecture. > > hope this helps, > > Eugene > > > --- Edmund Dengler <[EMAIL PROTECTED]> wrote: > > > Greetings! > > > &

Re: [GENERAL] Failure to use indexes (fwd)

2005-08-02 Thread Edmund Dengler
Greetings! I have already increased the stats from 10 to 100. In addition, if I specify individual tables, then the indexes are used. However, when I go through the , then indexes are not used. I will try and expand the statistics, but suspect it is not the root cause of the problem. Regards! Ed

Re: [GENERAL] Failure to use indexes (fwd)

2005-08-02 Thread Edmund Dengler
causes the indexes to be used - still trying to make sure it is a legitimate method). Regards! Ed -- Forwarded message -- Date: Fri, 29 Jul 2005 14:23:29 -0400 (EDT) From: Edmund Dengler <[EMAIL PROTECTED]> To: Postgresql-General Subject: Re: [GENERAL] Failure to use i

Re: [GENERAL] Failure to use indexes

2005-07-29 Thread Edmund Dengler
set to compare against), I get sequential scanning, event though the set size is only a single element. Regards! Ed On Fri, 29 Jul 2005, Edmund Dengler wrote: > Greetings! > > I am using to partition several tables. When I perform a query > on another table, and then try to join against

[GENERAL] Failure to use indexes

2005-07-29 Thread Edmund Dengler
Greetings! I am using to partition several tables. When I perform a query on another table, and then try to join against an inherited table set, the optimizer does not use any indexes to perform the join. This is 8.0.1. Is this fixed in 8.0.2 or 8.0.3? The query: explain select * from ( se

Re: [GENERAL] Deletes and large tables

2005-06-10 Thread Edmund Dengler
e delete was taking less than a second. > > Hope it help > /David > > > > >Regards! > >Ed > > > > > >On Fri, 10 Jun 2005, Richard Huxton wrote: > > > > > > > >>Edmund Dengler wrote: > >> > >> > >&

Re: [GENERAL] Deletes and large tables

2005-06-10 Thread Edmund Dengler
, I would expect I/O issues/bounds and not CPU. Regards! Ed On Fri, 10 Jun 2005, Richard Huxton wrote: > Edmund Dengler wrote: > > Greetings! > > > > We have a table with more than 250 million rows. I am trying to delete the > > first 100,000 rows (based on a bigint

[GENERAL] Deletes and large tables

2005-06-10 Thread Edmund Dengler
Greetings! We have a table with more than 250 million rows. I am trying to delete the first 100,000 rows (based on a bigint primary key), and I had to cancel after 4 hours of the system not actually finishing the delete. I wrote a script to delete individual rows 10,000 at a time using transaction

[GENERAL] INHERITS and planning

2005-06-09 Thread Edmund Dengler
Greetings! Is there an issue when a large number of INHERITS tables exist for planning? We have 2 base tables, and use INHERITS to partition the data. When we get around 2000-2200 sub-tables (approx 1000-1100 per base table), planning a SELECT statement on the base table (ie, to search all sub-ta

Re: [GENERAL] vulnerability/SSL (fwd)

2005-06-08 Thread Edmund Dengler
Greetings! Does anybody know how well the optimizer works when dealing with inherited tables? I am currently using 8.0.1. I have a table called eventlog.record_main, and a number of inherited tables to partition the data (called eventlog_partition.___record_main). is the primary key (all tables

[GENERAL] Optimizer and inherited tables

2005-06-08 Thread Edmund Dengler
(Sorry, wrong subject line got sent) Greetings! Does anybody know how well the optimizer works when dealing with inherited tables? I am currently using 8.0.1. I have a table called eventlog.record_main, and a number of inherited tables to partition the data (called eventlog_partition.___record_m

Re: [GENERAL] Multi-column indexes

2005-01-15 Thread Edmund Dengler
Hi Tom! Yep, there are a large number of host_luid/log_luid combinations (there are approximatly 5-10 hosts and 1-3 logs per system we are running). Thanks for the recommended workaround, I'll have a try at it at some point tomorrow. Regards! Ed On Sat, 15 Jan 2005, Tom Lane wrote: >

[GENERAL] Multi-column indexes

2005-01-15 Thread Edmund Dengler
Greetings! I have a technical question concerning multi-column indexes and their implementation. I tried looking for the answr in the docs but couldn't find anything. I have the following table: eventlog=> \d agent.record Table "agent.record" Colu

Re: [GENERAL] Enough RAM for entire Database.. cost aside, is this

2004-07-08 Thread Edmund Dengler
Greetings! On Fri, 2 Jul 2004, Mike Rylander wrote: > I find that experience does not bear this out. There is a saying a coworker > of mine has about apps that try to solve problems, in this case caching, > that are well understood and generally handled well at other levels of the > "software st

[GENERAL] Unable to use index?

2004-04-29 Thread Edmund Dengler
Hi folks! A query I am running does not seem to use indexes that are available (running version 7.4.2). I have the following table: => \d replicated Table "public.replicated" Column | Type | Modifiers -+

Re: [GENERAL] SET within a function?

2003-10-15 Thread Edmund Dengler
s not in the specification)? Performance? No support from the back-end? Something else? Regards, Ed On Wed, 15 Oct 2003, Tom Lane wrote: > Edmund Dengler <[EMAIL PROTECTED]> writes: > > ... I have no real choice in this as there is no way to specify that > > NULL == NULL. >

Re: [GENERAL] SET within a function?

2003-10-14 Thread Edmund Dengler
The problem I would face is that this still needs to be a sequential scan in the table rather than an index lookup. Regards, Ed On Tue, 14 Oct 2003, Arthur Ward wrote: > > Is the rewrite only for the literal 'X = NULL' or will it do a test > > against a value such as 'X = OLD.X' (and rewrite is

Re: [GENERAL] SET within a function?

2003-10-13 Thread Edmund Dengler
dummy value for the 'Not a valid value', but it seems to be quite awkward when I really do want the NULL. Regards! Ed On Mon, 13 Oct 2003, Bruno Wolff III wrote: > On Mon, Oct 13, 2003 at 21:16:33 -0400, > Edmund Dengler <[EMAIL PROTECTED]> wrote: > > > > I

[GENERAL] SET within a function?

2003-10-13 Thread Edmund Dengler
Hi all! I am doing some trigger functions that need to find a tuple in another table. The problem is that this second table is doing some summarization work, and I need nulls to equal each other. Basically, in the trigger I do a: SELECT INTO ... x FROM table1 WHERE ...(some straightforward

Re: [GENERAL] Buglist

2003-08-21 Thread Edmund Dengler
ble amount of time, and of doing it. Regards! Ed On Thu, 21 Aug 2003, Andrew Sullivan wrote: > On Thu, Aug 21, 2003 at 12:05:28PM -0400, Edmund Dengler wrote: > > Well, if they are locked waiting on vacuum, then vacuum should upgrade > > it's priority to the highest waiting proce

Re: [GENERAL] Bulk Insert / Update / Delete

2003-08-21 Thread Edmund Dengler
Wasn't there a feature in some SQL database which was the equivalent of UPDATE OR INSERT ... based on the primary key? Would this accomplish what you want (I know that I have a desire for this feature a couple of times, as I simply have code or triggers to essentially do the equivalent)? Is this a

Re: [GENERAL] Buglist

2003-08-21 Thread Edmund Dengler
Well, if they are locked waiting on vacuum, then vacuum should upgrade it's priority to the highest waiting process (priority inheritance). This way, vacuum will be running at a priority level equivalent to who is waiting on it. Regards, Ed On Thu, 21 Aug 2003, Andrew Sullivan wrote: > On Wed, A

Re: [GENERAL] Buglist

2003-08-20 Thread Edmund Dengler
What about the use of priority inheritance to deal with the issue of priority inversion (a standard methodology within the real-time world)? Then we could have priorities, but still have low priority processes bumped up if a high level one is waiting on them. Regards, Ed On Wed, 20 Aug 2003, Tom

Re: [GENERAL] Unused Indexes

2003-07-30 Thread EDMUND DENGLER
You need to convert the int's to bigints. select id where col1 = 1::bigint and col2 = 1::bigint Regards, Ed -Original Message- From: Tim McAuley <[EMAIL PROTECTED]> Date: Wed, 30 Jul 2003 13:46:46 To:[EMAIL PROTECTED] Subject: [GENERAL] Unused Indexes Hi, I have a table which I have p