Josh Berkus <josh@agliodbs.com> writes: > I don't think your experience on this one query is descriptive of PostgreSQL > in general. What I'm saying is that you most likely have a tuning problem, > not a bug.
It might be a bug (or at least an unhelpful behavior) but the given case didn't prove a thing. I'm still looking for an explanation of a common case in which we'll cache a plan chosen too soon. I don't think ordinary data loading situations will cause that problem. Choosing a plan for an FK reference check while the referenced table is still empty means that you're loading the tables in the wrong order, and your load is going to fail anyhow. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org