call analyze from stored procedure in C - Mailing list pgsql-hackers

From Ulli Mueckstein
Subject call analyze from stored procedure in C
Date
Msg-id Pine.LNX.4.44.0304151615230.13731-100000@mescalin.tbi.univie.ac.at
Whole thread Raw
List pgsql-hackers
Hi everybody!

I have to insert a lot of data (more than 1.000.000 rows) in various 
tables. I use stored procedures in C to insert the data. It is necessary 
to run ANALYZE after inserting a some thousand rows into a table. Can 
someone tell me how to call ANALYZE 
(or analyze_rel(Oid relid, VacuumStmt *vacstmt)) 
from a C stored procedure ? Any help would be appreciated. 

Thanks

Ulli Mueckstein

-- 



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [GENERAL] Problem about pgsql's column alias
Next
From: Robert Treat
Date:
Subject: Re: Are we losing momentum?