Re: [SQL] SELECT very slow

2005-06-08 Thread Alain
Tom Lane escreveu: Thomas Kellerer <[EMAIL PROTECTED]> writes: Is there anything I can do, to convince PG to return the first row more quickly? Are you now looking for the LIMIT ? SELECT * FROM table LIMIT 1; and when when you wnat the rest of it: SELECT * FROM table OFFSET 1;

[SQL] How do write a query...

2005-06-05 Thread Alain Reymond
. What I would like to calculate is (AValue2-AValue1) for a given Num (here num1). In this case, I would have to calculate 60-50 for Num 10 and 43-55, 62-43 for Num 25. Do you have any idea if it can be done simply with a request... I thank you Regards. Alain Reymond

[SQL] Tip ?

2005-05-24 Thread Alain
gs go sour... Can someone explain it please? thanks, Alain ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

[SQL] Changed to: how to solve the get next 100 records problem

2005-05-18 Thread Alain
ng postgre 7.4.1) The 3rd order by is not indexed, but it operates in a memory table of no more than 200 so it is fast too. Please comment on this. I tested and it worked but I really new to sql and I feel insecure... Thanks, Alain [how to solve the get next 100 records problem] BUT, I th

Re: [SQL] Does Postgresql have a similar pseudo-column "ROWNUM" as

2005-05-17 Thread Alain
tremely fast with 600 records and it looks like the few redundant or empty queries (but very fast) will not be a problem. What is your opinion about this (apart that it is a bit complex :) ?? Alain ---(end of broadcast)--- TIP 6: Have you searched

Re: [SQL] Does Postgresql have a similar pseudo-column "ROWNUM" as

2005-05-17 Thread Alain
one for each phone number). I tried using both the name and the primary key (with a combined index), to get faster to the record I want, but I was not sucessfull in building a where clause. I would appreciate any help, in fact this is my primary reason for joining this list ;-) Al

Re: [SQL] Does Postgresql have a similar pseudo-column "ROWNUM" as

2005-05-17 Thread Alain
o what you want. I think. The problem is probably speed. I have done a lot of tests, and when OFFSET gets to a few thousands on a multimega-recs database, it gets very very slow... Is there any other to work around that? Alain ---(end of broadcast)---

[SQL] degradation in performance

2004-09-21 Thread Alain Reymond
for your suggestions. Regards. Alain Reymond CEIA Bd Saint-Michel 119 1040 Bruxelles Tel: +32 2 736 04 58 Fax: +32 2 736 58 02 [EMAIL PROTECTED] PGP key sur http://pgpkeys.mit.edu:11371 ---(end of broadcast)--- TIP 8: explain analyze is your

Re: [SQL] Database structure

2004-05-04 Thread Alain Reymond
(#assessment_nr, labtest_nr) for only one integer and one real per row. And I can have up to 1.500.000 rows per year with at least 10 years on line... It means big indexes. Regards. Alain > I would go for the second one. I think the size of the table is not a > problem. You will have j

[SQL] Database structure

2004-05-04 Thread Alain Reymond
ults and 2 for identification. I would like to store 10 years online, so 15.000.000 rows. What about the size of index ? Any advise ? I thank you in advance. Alain Reymond (I hope that it is clear enough with my bad English). ---(end of broadcast)-

Re: [SQL] Need help on a troublesome query plan

2002-07-17 Thread Alain Lavigne
Thanks that worked, but why does that happen or maybe you could point to the proper thread so I read up on it. Alain Lavigne - Data Administrator - ZAQ Interactive Solutions E-Mail: [EMAIL PROTECTED

[SQL] Need help on a troublesome query plan

2002-07-16 Thread Alain Lavigne
..2264.16 rows=1 width=8) EXPLAIN I don't understand why it's not using the defined index, even after performing VACUUM FULL ANALYZE on the table. I tried disabling seqscan but that didn't change anything. I'm open to suggestions anyone Thanks! ---

[SQL] SQL question

2001-02-06 Thread Alain Lavigne
I'm trying to extract references (relationships) between tables for the purpose of reverse/forward engineer from a modeling tool called PowerDesigner. Here is the sql: select u.usename, p.relname, v.usename, c.relname, t.tgconstrname, dumpref(t.tgargs, 4), **

[SQL] SQL question

2001-01-14 Thread Alain Lavigne
casts >> What am I doing wrong ?? Alain Lavigne - Data Administrator - ZAQ.iTv - E-Mail: [EMAIL PROTECTED] 297 St-Paul, West - Montreal, Quebec, Canada - H2Y 2A5 Phone: 514-282-7073 ext: 371 Fax: 514-282-8011

Re: Re(2): Re(2): [SQL] 7.0.3 BUG

2000-11-27 Thread Alain Toussaint
; ),the pentium gcc group in this case used gcc 2.95.2,applied their pentium patches and released the thing as pgcc 2.95.3,that's the stock compiled used by mandrake. Alain Toussaint