Re: [SQL] Performance of a view

2005-12-20 Thread Tom Lane
John McCawley <[EMAIL PROTECTED]> writes: > I have a view which is defined as follows: > SELECT tbl_claim.claim_id, count(tbl_invoice.invoice_id) AS count, > min(tbl_invoice.invoicedate) AS invoicedate > FROM tbl_claim > LEFT JOIN tbl_invoice ON tbl_claim.claim_id = tbl_invoice.claim_id AND

[SQL] Performance of a view

2005-11-16 Thread John McCawley
Hello all, I have a fairly complex query whose performance problem I have isolated to a fairly small subset. The pertinent parts of the table structure are as follows: //- tbl_claim claim_id integer SERIAL PRIMARY KEY; claimnum varchar(32); //---