Re: [PERFORM] Reading recommendations

2005-03-30 Thread Michael Fuhr
://www.powerpostgresql.com/Docs/ BTW. If you are a SQL/python programmer in (or near) Lanarkshire, Scotland, we have a vacancy. ;-) Allow telecommute from across the pond and I might be interested :-) -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---(end of broadcast

Re: [PERFORM] Million of rows

2005-03-29 Thread Michael Fuhr
the database regularly? Have you investigated whether you need to increase the statistics on any columns? Have you tuned postgresql.conf? What version of PostgreSQL are you using? -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---(end of broadcast)--- TIP

Re: [PERFORM] cpu_tuple_cost

2005-03-17 Thread Michael Fuhr
://archives.postgresql.org/pgsql-hackers/2000-02/msg00215.php -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [PERFORM] Help to find out problem with joined tables

2005-03-16 Thread Michael Fuhr
else can provide a better explanation. -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [PERFORM] Performance problem on delete from for 10k rows. May takes 20 minutes through JDBC interface

2005-03-15 Thread Michael Fuhr
been done under different conditions, so it might not mean much. No offense intended, but I remember doesn't carry as much weight as a documented example. -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---(end of broadcast)--- TIP 2: you can get off

Re: [PERFORM] What is the postgres sql command for last_user_id ???

2005-03-02 Thread Michael Fuhr
the value of a SERIAL insert? and the question immediately following it in the FAQ: http://www.postgresql.org/files/documentation/faqs/FAQ.html#4.11.2 -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---(end of broadcast)--- TIP 7: don't forget to increase

Re: [PERFORM] Autocommit

2005-02-14 Thread Michael Fuhr
(or END) or ROLLBACK. That is, unless your client intercepts these statements and does whatever it wants -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http

Re: [PERFORM] Autocommit

2005-02-14 Thread Michael Fuhr
transactions. -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [PERFORM] Are JOINs allowed with DELETE FROM

2005-02-06 Thread Michael Fuhr
then automatically delete all associated records in detail. -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED

Re: [PERFORM] Accessing insert values in triggers

2005-02-03 Thread Michael Fuhr
/plpython-trigger.html -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [PERFORM] Upgrading from from 7.4.2 to 8.0

2005-01-26 Thread Michael Fuhr
/static/migration.html (Install or upgrade questions should probably go to pgsql-admin or pgsql-general instead of pgsql-performance.) -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---(end of broadcast)--- TIP 2: you can get off all lists at once

Re: [PERFORM] TEXT field and Postgresql Perfomance

2005-01-07 Thread Michael Fuhr
TABLE SET STORAGE might be appropriate here, but I'll defer that to somebody who understands such things better than me. -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [PERFORM] Bad Index Choices with user defined data type

2005-01-03 Thread Michael Fuhr
the query and the EXPLAIN ANALYZE output for both cases: one query with enable_seqscan on and one with it off. It might also be useful to see the column's statistics from pg_stats, and perhaps the SQL statements that create the table, the type, the type's operators, etc. -- Michael Fuhr http

Re: [PERFORM] [GENERAL] Query is not using index when it should

2004-12-11 Thread Michael Fuhr
. The generating program uses WHERE 1=1 to simplify the addition of other conditions: instead of checking if it needs to add a WHERE and putting ANDs in the right places, it simply appends subsequent conditions with AND condition. -- Michael Fuhr http://www.fuhr.org/~mfuhr

Re: [PERFORM] Tsearch2 really slower than ilike ?

2004-11-16 Thread Michael Fuhr
of words then I'd expect tsearch2 to be faster than ILIKE by an order of magnitude or more. -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send unregister

Re: [PERFORM] Checking = with timestamp field is slow

2004-11-05 Thread Michael Fuhr
foo_date_today_idx ON foo (DATE(today)); After creating the new index, use WHERE DATE(today) = '2004-11-05' in your queries. EXPLAIN ANALYZE should show that the index is being used. -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---(end of broadcast

Re: [PERFORM] Checking = with timestamp field is slow

2004-11-05 Thread Michael Fuhr
-- Index Scan using foo_date_idx on foo (cost=0.00..167.83 rows=50 width=16) (actual time=0.051..0.061 rows=1 loops=1) Index Cond: (date(today) = '2004-11-05'::date) -- Michael Fuhr http://www.fuhr.org/~mfuhr

Re: [PERFORM] Checking = with timestamp field is slow

2004-11-05 Thread Michael Fuhr
in queries like this: WHERE today IN ('2004-09-01', '2004-10-01', '2004-11-01'); -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command

[PERFORM] Slow joins against set-returning functions

2004-08-15 Thread Michael Fuhr
=10) Index Cond: (stuff.id = outer.id) Total runtime: 2.374 ms (5 rows) Is the planner doing something wrong here? Thanks. -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---(end of broadcast)--- TIP 1: subscribe and unsubscribe

<    1   2