[PERFORM] nested query on last n rows of huge table

2006-02-28 Thread jcfischer
Hi list I'm fairly new to Postgres so bear with me. Googling and searching the list, I didn't find anything that resembled my problem. I have a large table with ca. 10 million inserts per day (fairly simple data: timestam, a couple of id's and a varchar message) I run a query every couple of min

Re: [PERFORM] nested query on last n rows of huge table

2006-02-28 Thread jcfischer
sorry: Postgres 8.0.2 server. The EXPLAIN ANALYZE for the query looks like this: explain analyze select syslog.logs.eventtime,assets.hosts.name,syslog.processes.name as process from syslog.logs,assets.hosts,assets.ipaddrs,assets.macaddrs,syslog.processes where msg like '%session opened for user ro