Philip Warner <[EMAIL PROTECTED]> writes: > At 12:15 PM 12/08/2004, Tom Lane wrote: >> Why exactly does pg_restore need to parse the SQL anyway?
> It just looks for complete statements. From memory it relates to the > possibility that TOC entries can have more than one statement, or it may > relate to handling COPY statements. I think it has to look for > PQresultStatus(...) == PGRES_COPY_IN for each statement it executes, so it > needs to pass statements one at a time. Hm. But we could assume that a COPY will be all by itself in a TOC entry, couldn't we? regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html