Re: [PERFORM] Insertion to temp table deteriorating over time

2006-12-18 Thread Tom Lane
ndent bugs here: first, why (and how) is the temp table different, and second how does that result in the observed performance problem. regards, tom lane ---(end of broadcast)--- TIP 4: Have you searched our list archives

Re: [HACKERS] [PERFORM] EXPLAIN ANALYZE on 8.2

2006-12-18 Thread Tom Lane
"Simon Riggs" <[EMAIL PROTECTED]> writes: > On Fri, 2006-12-15 at 09:56 -0500, Tom Lane wrote: >> The fundamental problem with it was the assumption that different >> executions of a plan node will have the same timing. That's not true, >> in fact not ev

Re: [PERFORM] Insertion to temp table deteriorating over time

2006-12-19 Thread Tom Lane
he view. Yeah, this is a known issue with UNIONs not preserving the length info --- which is not entirely unreasonable: what will you do with varchar(40) union varchar(50)? There's a hack in place as of 8.2 to keep the length if all the union arms have the same length.

Re: [PERFORM] Insertion to temp table deteriorating over time

2006-12-19 Thread Tom Lane
ndividual > insert to the temp table needs to be sent over the connection and this is > what degrades over time. I can reproduce on 7.4.6 and 8.1.4. I have a > small C program to do this which I can send you offline if you're > interested. Please. regard

Re: [PERFORM] GROUP BY vs DISTINCT

2006-12-20 Thread Tom Lane
also consider hash-based implementations. The hard part of that is not to break DISTINCT ON ... regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PERFORM] URGENT: Out of disk space pg_xlog

2006-12-22 Thread Tom Lane
we PANIC and can't continue running the database Once you free some space on the data partition and restart, you should be good to go --- there will be no loss of committed transactions, since all the operations are in pg_xlog. Might take a little while to replay all that log though :-(

Re: [PERFORM] URGENT: Out of disk space pg_xlog

2006-12-22 Thread Tom Lane
"Kevin Grittner" <[EMAIL PROTECTED]> writes: > Tom Lane <[EMAIL PROTECTED]> wrote: >> before the system crash? The scenario we've seen in the past is >> >> * data partition out of space, so writes fail >> * each time Postgres attempts a ch

Re: [PERFORM] URGENT: Out of disk space pg_xlog

2006-12-22 Thread Tom Lane
ohp@pyrenet.fr writes: > On Fri, 22 Dec 2006, Tom Lane wrote: >> No, pg_xlog can be truncated as soon as a checkpoint occurs. > Even for currently running transactions ? Yes. regards, tom lane ---(end of broadcast)---

Re: [PERFORM] [NOVICE] Partitioning

2006-12-26 Thread Tom Lane
Kevin Hunter <[EMAIL PROTECTED]> writes: > On 26 Dec 2006 at 2:55p -0500, Tom Lane wrote: >> I thought you did a fine job right there ;-). In essence this would be >> replacing one level of indexing with two, which is unlikely to be a win. >> If you have exactly M ro

Re: [PERFORM] High update activity, PostgreSQL vs BigDBMS

2006-12-28 Thread Tom Lane
uce the per-transaction overhead. regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PERFORM] Backup/Restore too slow

2006-12-29 Thread Tom Lane
regards, tom lane ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [PERFORM] Worse perfomance on 8.2.0 than on 7.4.14

2006-12-31 Thread Tom Lane
f the stats were up-to-date), why did it use an indexscan rather than a seqscan? Are you sure you haven't tweaked any parameters you didn't tell us about, such as setting enable_seqscan = off? regards, tom lane ---(end of broadcast)

Re: [PERFORM] Worse perfomance on 8.2.0 than on 7.4.14

2007-01-01 Thread Tom Lane
ad of 42). If it doesn't want to use an indexscan for this, disable plan types until it does. This would perhaps shed some light on why 8.2 doesn't want to use a scan like that as the inside of a nestloop. regards, tom lane -

Re: [PERFORM] glibc double-free error

2007-01-01 Thread Tom Lane
do to help diagnose this problem? Either dig into it yourself with gdb, or send me a not-too-large example dump file (off-list)... regards, tom lane ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by

Re: [PERFORM] glibc double-free error

2007-01-01 Thread Tom Lane
. ] I find that explanation pretty implausible, but unless you can reproduce it on the production machine, I suppose digging further would be a waste of time ... regards, tom lane ---(end of broadcast)--- TIP 9: In versions belo

Re: [PERFORM] Worse perfomance on 8.2.0 than on 7.4.14

2007-01-02 Thread Tom Lane
ted iterations of the inner scan. regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PERFORM] Slow dump?

2007-01-02 Thread Tom Lane
provide useful data about which steps take a long time, if you're not sure.) regards, tom lane ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [PERFORM] More 8.2 client issues (Was: [Slow dump?)

2007-01-02 Thread Tom Lane
ing connection? Try strace'ing psql (or whatever the Solaris equivalent is) to see what it's doing. regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PERFORM] Worse perfomance on 8.2.0 than on 7.4.14

2007-01-03 Thread Tom Lane
t is ... is the table really the same size in both servers? If so, could we see the pg_stats row for step_result_subset.uut_result on both servers? regards, tom lane ---(end of broadcast)--- TIP 1: if posting/reading through U

Re: [PERFORM] More 8.2 client issues (Was: [Slow dump?)

2007-01-03 Thread Tom Lane
pg_namespace n ON n.oid = c.relnamespace WHERE c.relname ~ '^(pg_class)$' AND pg_catalog.pg_table_is_visible(c.oid) ORDER BY 2, 3; I could see this taking an unreasonable amount of time if you had a huge number of pg_class rows or a very long search_path --- is your data

Re: [PERFORM] More 8.2 client issues (Was: [Slow dump?)

2007-01-03 Thread Tom Lane
Erik Jones <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> I could see this taking an unreasonable amount of time if you had a huge >> number of pg_class rows or a very long search_path --- is your database >> at all out of the ordinary in those ways? >> >

Re: [PERFORM] More 8.2 client issues (Was: [Slow dump?)

2007-01-03 Thread Tom Lane
ing use of the table-selection switches? regards, tom lane ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [PERFORM] More 8.2 client issues (Was: [Slow dump?)

2007-01-03 Thread Tom Lane
d do a test run of "pg_dump -s" with logging enabled; that shouldn't take an unreasonable amount of time or space. regards, tom lane ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore

Re: [PERFORM] Trivial function query optimized badly

2007-01-03 Thread Tom Lane
> db=> explain analyze select version_id, 'Brc1ccc2nc(cn2c1)C(=O)O' from > version where version.isosmiles = cansmiles('Brc1ccc2nc(cn2c1)C(=O)O', 1); And this query is invoking some other, two-argument function; which apparently hasn't been marked IMMUTA

Re: [PERFORM] Performance of PostgreSQL on Windows vs Linux

2007-01-04 Thread Tom Lane
your own application. I think one big variable in this is which PG version you are testing. We've been gradually filing down some of the rough edges in the native Windows port, so I'd expect that the performance gap is closing over time. I don't know how close to closed it is in 8.2,

Re: [PERFORM] Slow Query on Postgres 8.2

2007-01-04 Thread Tom Lane
"Dave Dutcher" <[EMAIL PROTECTED]> writes: > I am looking at upgrading from 8.1.2 to 8.2.0, and I've found a query which > runs a lot slower. Um ... what indexes has this table got exactly? It's very unclear what alternatives the planner is being faced with.

Re: [PERFORM] Slow Query on Postgres 8.2

2007-01-04 Thread Tom Lane
tweaking needed. BTW, it's interesting to note that the plan 8.1.2 produces is pretty obviously bogus in itself ... why do only the first two arms of the BitmapOr use as_of_date conditions? We fixed some sillinesses in the bitmap scan planning later in the 8.1 series, so I think y

Re: [PERFORM] Missing the point of autovacuum

2007-01-06 Thread Tom Lane
indow, so if you'd rather your vacuuming mostly happened at 2AM, you still need a cron job for that. regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PERFORM] High update activity, PostgreSQL vs BigDBMS

2007-01-07 Thread Tom Lane
ne case that has come out on the short end of the stick. If that's your most important measure of performance, then indeed you should select a different database that's made different tradeoffs. regards, tom lane ---(end of broadcast)

Re: [PERFORM] Horribly slow query/ sequential scan

2007-01-09 Thread Tom Lane
; trouble understanding what Informix might have been doing to my (bad > ?) SQL to "fix" the query. Me too. Does informix have anything EXPLAIN-like to show what it's doing? regards, tom lane ---(end of broadcast)-

Re: [PERFORM] Horribly slow query/ sequential scan

2007-01-09 Thread Tom Lane
sub-SELECT into an IN join even though the sub-SELECT is correlated to the outer query (that is, it contains outer references). I'm not sure whether we're just being paranoid by not doing that, or whether there are special conditions to check before allowing it, or whether Informix is wrong ... regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PERFORM] Horribly slow query/ sequential scan

2007-01-10 Thread Tom Lane
your query was really a mistake anyway, I'm not sure that your example is compelling evidence for making it a high priority. regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PERFORM] Slow inner join, but left join is fast

2007-01-10 Thread Tom Lane
yzed your tables recently? regards, tom lane ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [PERFORM] Slow inner join, but left join is fast

2007-01-10 Thread Tom Lane
is the change from estimating 1 row matching the transaction_date range constraint, to estimating lots of them, and the join type away up at the top would surely not have affected that. regards, tom lane ---(end of broadcast)---

Re: [PERFORM] Slow inner join, but left join is fast

2007-01-10 Thread Tom Lane
class.reltuples. But it's hard to believe that'd have caused as big a rowcount shift as we see here ... regards, tom lane ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [PERFORM] unusual performance for vac following 8.2 upgrade

2007-01-11 Thread Tom Lane
ble and doing work there. How big is this database (how many pg_class entries)? What do you get from "VACUUM VERBOSE pg_class"? The truss results make it sound like the problem is pgstat_vacuum_tabstat() taking a long time, but that code has not changed since 8.1 ...

Re: [PERFORM] unusual performance for vac following 8.2 upgrade

2007-01-11 Thread Tom Lane
d have had a performance issue with pg_class that large. Also, could we see select relkind, count(*) from pg_class group by relkind; regards, tom lane ---(end of broadcast)--- TIP 4: Have you searched our l

Re: [PERFORM] Improving SQL performance

2007-01-11 Thread Tom Lane
e an index on tt_log.codcep? If so, maybe you need to cast the result of the concatenation to char(8) to get it to use the index. regards, tom lane ---(end of broadcast)--- TIP 4: Have you searched our

Re: [PERFORM] unusual performance for vac following 8.2 upgrade

2007-01-11 Thread Tom Lane
oday. (2) Reconsider whether last-vacuum-time should be sent to the collector unconditionally. Comments from hackers? regards, tom lane ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [HACKERS] [PERFORM] unusual performance for vac following 8.2 upgrade

2007-01-11 Thread Tom Lane
ave regressed but I can think of several places that would've been bad before. One is that there are seqscans of pg_inherits ... regards, tom lane ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [PERFORM] unusual performance for vac following 8.2 upgrade

2007-01-11 Thread Tom Lane
r $PGDATA/global/pgstat.stat file, anyway? regards, tom lane ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [HACKERS] [PERFORM] unusual performance for vac following 8.2 upgrade

2007-01-11 Thread Tom Lane
the problem in 8.1, though. This code is just about exactly the same in 8.1. Maybe you changed your stats collector settings when moving to 8.2? regards, tom lane Index: pgstat.c === RCS file: /cvsroot/pgsql/s

Re: [HACKERS] [PERFORM] unusual performance for vac following 8.2upgrade

2007-01-11 Thread Tom Lane
d figures out what the referencing object is. I don't really see any solution to that last point :-( regards, tom lane ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to ch

Re: [PERFORM] Performance of Parser?

2007-01-13 Thread Tom Lane
parsing (operator resolution to be specific). I think your client code is failing to re-use prepared statements the way you think it is. regards, tom lane ---(end of broadcast)--- TIP 1: if posting/reading through Usene

Re: [PERFORM] PG8.2.1 choosing slow seqscan over idx scan

2007-01-16 Thread Tom Lane
may find yourself pessimizing the actual behavior. regards, tom lane ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [PERFORM] Monitoring Transaction Log size

2007-01-17 Thread Tom Lane
erhaps more to the point, why do you think you need to? pg_xlog should stay pretty level at approximately 2*checkpoint_segments xlog files (once it's ramped up to that size, which might take a heavy burst of activity if checkpoint_segments is large). regards, tom lane ---

Re: [PERFORM] Autoanalyze settings with zero scale factor

2007-01-18 Thread Tom Lane
d, the autovac process fired up. > What could get PG in a state where autovac isn't running? Um, are you sure it wasn't? The autovac process is not an always-there thing, it quits after each pass and then the postmaster starts a new one awhile later.

Re: [PERFORM] Postgres and really huge tables

2007-01-18 Thread Tom Lane
that data around since about 2001 (PG 7.1 or so, which is positively medieval compared to current releases). So at least for static data, it's certainly possible to get useful results. What are your processing requirements? regards, tom lane --

Re: [PERFORM] Configuration Advice

2007-01-18 Thread Tom Lane
sh because it thinks it won't fit in memory ... There is a bug here, I'd say: the rowcount estimate ought to be the same either way. Dunno why it's not, but will look --- I see the same misbehavior with a toy table here. regards, tom lane -

Re: [PERFORM] Bad Row Count Estimate on View with 8.2

2007-01-23 Thread Tom Lane
there isn't any "parent relation" in a UNION, I'm not sure that this patch actually changed your results ... but I'm not seeing what else would've ... regards, tom lane ---(end of broadcast)---

Re: [PERFORM] Seqscan/Indexscan still a known issue?

2007-01-27 Thread Tom Lane
size instead of unconditionally believing pg_class.relpages/reltuples. Thus, they're much less likely to get fooled when a table has grown substantially since it was last vacuumed or analyzed. regards, tom lane ---(end of broadcast)-

Re: [PERFORM] IN operator causes sequential scan (vs. multiple OR expressions)

2007-01-27 Thread Tom Lane
enable_seqscan = off, does that force an indexscan, and if so what does EXPLAIN ANALYZE show in that case? regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PERFORM] IN operator causes sequential scan (vs. multiple OR expressions)

2007-01-27 Thread Tom Lane
e is not doing the right thing: notice the rowcount estimate is 10, whereas it should be only 2 because of the unique index on f2. I poked into it and realized that in 8.2 scalararraysel() fails to deal with binary-compatible datatype cases, instead falling back to a not-very-bright generic estima

Re: [PERFORM] Bad Row Count Estimate on View with 8.2

2007-01-28 Thread Tom Lane
8.2's new code for flattening UNION ALL subqueries into "append relations" is failing to initialize all the fields of the appendrel, which confuses estimate_num_groups (and perhaps other places). I think this will fix it for you.

Re: [PERFORM] Tuning

2007-01-28 Thread Tom Lane
s checkpoint_timeout (typically 5 minutes or so) and then keep an eye on the postmaster log for awhile. If you see more than a few "checkpoints are occuring too frequently" messages, you want to raise checkpoint_segments. regards, tom lane -

Re: [PERFORM] Querying distinct values from a large table

2007-01-30 Thread Tom Lane
n providing the context they were derived in. I wish he'd stop doing that... regards, tom lane ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [PERFORM] Querying distinct values from a large table

2007-01-31 Thread Tom Lane
to work for DISTINCT as well as GROUP BY. IIRC, DISTINCT is currently rather thoroughly intertwined with ORDER BY, and we'd have to figure out some way to decouple them --- without breaking DISTINCT ON, which makes it a lot harder :-( regards, tom lane ---

Re: [PERFORM] trouble with a join on OS X

2007-02-02 Thread Tom Lane
(kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes(-u) 266 virtual memory(kbytes, -v) unlimited $ 6 meg of memory isn't gonna hold 7 million rows ... so either raise "ulimit -d" (quite a lot) or else use a cursor to fet

Re: [PERFORM] trouble with a join on OS X

2007-02-02 Thread Tom Lane
ulimit -d 614400 Or just "ulimit -d unlimited" regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PERFORM] trouble with a join on OS X

2007-02-02 Thread Tom Lane
mit for, yes? regards, tom lane ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [PERFORM] trouble with a join on OS X

2007-02-02 Thread Tom Lane
ly-sized chunks than 7M rows. (If you don't want to mess with managing a cursor explicitly, as of 8.2 there's a psql variable FETCH_COUNT that can be set to make it happen behind the scenes.) regards, tom lane ---(end of broadcast)---

Re: [PERFORM] trouble with a join on OS X

2007-02-02 Thread Tom Lane
if the data stays inside the database engine. regards, tom lane ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your

Re: [PERFORM] trouble with a join on OS X

2007-02-02 Thread Tom Lane
ate existing rows using a join, you can use UPDATE ... FROM (not standard) or something involving a sub-select. You'd need to state your problem in some detail to get more help than that... regards, tom lane ---(end of broadcast)---

Re: [PERFORM] How long should it take to insert 200,000 records?

2007-02-05 Thread Tom Lane
you weigh it down with a ton of index updates, foreign key checks, etc, it could get slow ... also you haven't mentioned what else that plpgsql function is doing. regards, tom lane ---(end of broadcast)--- TIP 7: You c

Re: [PERFORM] index scan through a subquery

2007-02-05 Thread Tom Lane
ipe, like which PG version you're using. But I'm going to guess that it's 8.2.x, because 8.1.x gets it right :-(. Try the attached. regards, tom lane Index: planagg.c === RCS file: /cvsroot/pg

Re: [PERFORM] How long should it take to insert 200,000 records?

2007-02-06 Thread Tom Lane
"Karen Hill" <[EMAIL PROTECTED]> writes: > On Feb 5, 9:33 pm, [EMAIL PROTECTED] (Tom Lane) wrote: >> I think you have omitted a bunch of relevant facts. > The postgres version is 8.2.1 on Windows. The pl/pgsql function is > inserting to an updatable view (basic

Re: [PERFORM] stats collector process high CPU utilization

2007-02-08 Thread Tom Lane
eration for 8.2 or something I should look into correcting? What version did you update from, and what platform is this? regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PERFORM] stats collector process high CPU utilization

2007-02-08 Thread Tom Lane
Benjamin Minshall <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> Benjamin Minshall <[EMAIL PROTECTED]> writes: >>> Since upgrading to 8.2.3 yesterday, the stats collector process has had >>> very high CPU utilization; it is consuming roughly 80-90% of on

Re: [PERFORM] stats collector process high CPU utilization

2007-02-08 Thread Tom Lane
Benjamin Minshall <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> Can you gather some info about what it's doing? >> strace'ing the stats collector might prove interesting, also if you have >> built it with --enable-debug then oprofile results would be helpf

Re: [PERFORM] stats collector process high CPU utilization

2007-02-08 Thread Tom Lane
n as before. What I'm betting is that it's storing info on a whole lot more tables than before. Did you decide to start running autovacuum when you updated to 8.2? How many tables are visible in the pg_stats views? regards, tom lane

Re: [PERFORM] stats collector process high CPU utilization

2007-02-08 Thread Tom Lane
Benjamin Minshall <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> How many tables are visible in the pg_stats views? > There are about 15 databases in the cluster each with around 90 tables. > A count of pg_stats yields between 500 and 800 rows in each database. Sorry,

Re: [PERFORM] stats collector process high CPU utilization

2007-02-08 Thread Tom Lane
y tables? During periods of high activity it could be > creating temporary tables as often as two per second. Hmmm ... that's an interesting point, but offhand I don't see why it'd cause more of a problem in 8.2 than 8.1. Alvaro, any thoughts? regards, tom la

Re: [PERFORM] stats collector process high CPU utilization

2007-02-09 Thread Tom Lane
recently for performance reasons ... could I have broken it? Anyone want to take a second look at http://archives.postgresql.org/pgsql-committers/2007-01/msg00171.php regards, tom lane ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [PERFORM] stats collector process high CPU utilization

2007-02-09 Thread Tom Lane
so we can get some more info? Alternatively, if Benjamin wants to send me a copy of his stats file (off-list), I'd be happy to take a look. regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PERFORM] stats collector process high CPU utilization

2007-02-09 Thread Tom Lane
roblem started. regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PERFORM] Is there an equivalent for Oracle's user_tables.num_rows

2007-02-09 Thread Tom Lane
aken as gospel. Instead the planner uses the current physical table size in place of relpages, and scales reltuples correspondingly. So neither steady growth nor truncation create a need for re-ANALYZE; at least not as long as the other statistics don't change too much.

Re: [PERFORM] limit + order by is slow if no rows in result set

2007-02-12 Thread Tom Lane
rows. You might be able to get a better result if you increased the statistics target for ts_status --- it looks like the planner thinks there are many more ts_status = 3 rows than there really are. regards, tom lane ---(end of broadcast)---

Re: [PERFORM] Question about Bitmap Heap Scan/BitmapAnd

2007-02-13 Thread Tom Lane
(bitmapqualorig, qpqual); What's not immediately clear is why the condition was in both lists to start with. Perhaps idx_lieu_parking is a partial index with this as its WHERE condition? regards, tom lane ---(end of broadcast)

Re: [PERFORM] Question about Bitmap Heap Scan/BitmapAnd

2007-02-13 Thread Tom Lane
to recheck partial-index conditions even if the bitmap is not lossy, but I can't reconstruct my reasoning at the moment. regards, tom lane ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [PERFORM] JOIN to a VIEW makes a real slow query

2007-02-13 Thread Tom Lane
" instead of the actual column name? EXPLAIN can't conveniently get access to the column name. That could probably be improved if someone wanted to put enough effort into it. regards, tom lane ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [PERFORM] cube operations slower than geo_distance() on production server

2007-02-13 Thread Tom Lane
#x27;available'. Also, I don't see that you mentioned anywhere what PG version you are running, but if it's not the latest then an update might help. I recall having fixed a bug that made the planner too eager to AND on an index that wouldn't actually help much ... which seems

Re: [PERFORM] An unwanted seqscan

2007-02-14 Thread Tom Lane
erest, provide some more context --- EXPLAIN ANALYZE output for starters. regards, tom lane ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [PERFORM] reindex vs 'analyze' (was: Re: cube operations slower than geo_distance() on production server)

2007-02-14 Thread Tom Lane
nlike all other plan node types, since we haven't actually visited the heap yet...) regards, tom lane ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [PERFORM] Question about Bitmap Heap Scan/BitmapAnd

2007-02-15 Thread Tom Lane
g a recheck would be redundant. Yeah, but his question is why is it in the filter? I think that the answer is probably "because the index is lossy for this operator, so it has to be checked even if the bitmap didn't become lossy". You'd have to check the GIST opclass definition

Re: [PERFORM] Not Picking Index

2007-02-16 Thread Tom Lane
begin; update pg_index set indisvalid = false where indexrelid = 'soandso'::regclass; explain analyze ...; rollback; regards, tom lane ---(end of broadcast)--- TIP 7: You ca

Re: [PERFORM] Not Picking Index

2007-02-16 Thread Tom Lane
o make CREATE INDEX CONCURRENTLY work. But if you want to (mis?)use it as a hint, you can ... regards, tom lane ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [PERFORM] Query Optimization

2007-02-19 Thread Tom Lane
to make it like the nestloop plan better... regards, tom lane ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [PERFORM] slow subselects

2007-02-19 Thread Tom Lane
rom students; > I have indexes on students(studentid) and studentprofile(studentid). The optimal index for this would be on studentprofile(studentid,score). A quick test says that PG 8.1 knows what to do with such an index --- what does EXPLAIN show for this query? regards

Re: [PERFORM] Two hard drives --- what to do with them?

2007-02-24 Thread Tom Lane
area is to put pg_xlog on a separate spindle; although that probably is only important for update-intensive applications. You did not tell us anything about your application... regards, tom lane ---(end of broadcast)--- TIP

Re: [PERFORM] [EMAIL PROTECTED]: Anyone interested in improving postgresql scaling?]

2007-02-27 Thread Tom Lane
ping on the same sema. Not that there's anything wrong with his proposal, but it doesn't affect Postgres. regards, tom lane ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [PERFORM] Upgraded to 8.2.3 --- still having performance issues

2007-02-28 Thread Tom Lane
rmance seems to have deteriorated) Did you remember to re-ANALYZE everything after loading up the new database? That's a frequent gotcha ... regards, tom lane ---(end of broadcast)--- TIP 1: if posting/reading thro

Re: [PERFORM] stats collector process high CPU utilization

2007-03-01 Thread Tom Lane
Benjamin Minshall <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> It's sounding like what you had was just transient bloat, in which case >> it might be useful to inquire whether anything out-of-the-ordinary had >> been done to the database right before the excess

Re: [PERFORM] stats collector process high CPU utilization

2007-03-01 Thread Tom Lane
"Merlin Moncure" <[EMAIL PROTECTED]> writes: > On 3/1/07, Tom Lane <[EMAIL PROTECTED]> wrote: >> A further report led us to realize that 8.2.x in fact has a nasty bug >> here: the stats collector is supposed to dump its stats to a file at >> most every

Re: [PERFORM] stats collector process high CPU utilization

2007-03-01 Thread Tom Lane
"Merlin Moncure" <[EMAIL PROTECTED]> writes: > On 3/2/07, Tom Lane <[EMAIL PROTECTED]> wrote: >> "Merlin Moncure" <[EMAIL PROTECTED]> writes: >>> I think this explains the trigger that was blowing up my FC4 box. >> >> I dug in th

Re: [PERFORM] Improving query performance

2007-03-01 Thread Tom Lane
EXT)) - 1) >= 0 OR > ...etc... I think you need to look into full-text indexing (see tsearch2). regards, tom lane ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [PERFORM] strange performance regression between 7.4 and 8.1

2007-03-02 Thread Tom Lane
d less suitable) index for the c1 queries? regards, tom lane ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [PERFORM] Performance Query

2007-03-02 Thread Tom Lane
t do you have? I don't see any need to guess. iostat or vmstat or local equivalent will show you quick enough if you are maxing out the disk or the CPU. It seems at least somewhat possible that the thing is blocked on a lock, in which case the pg_locks view would tell you about it.

Re: [PERFORM] PostgreSQL 8.2.3 VACUUM Timings/Performance

2007-03-05 Thread Tom Lane
n step 4. Just do the CLUSTER and then ANALYZE (or VACUUM ANALYZE if you really must, but the value is marginal). regards, tom lane ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [PERFORM] [EMAIL PROTECTED]: Progress on scaling of FreeBSD on 8 CPU systems]

2007-03-05 Thread Tom Lane
t;30% slower" bit certainly doesn't represent an across-the-board figure. As best I can tell, the decisions the planner happened to be making in late June were peculiarly nicely suited to his test, but not so much for other cases. regards, tom lane ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [PERFORM]

2007-03-05 Thread Tom Lane
rows for symptoms.id and symptom_reports.symptom_id? regards, tom lane ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

<    2   3   4   5   6   7   8   9   10   11   >