Search Postgresql Archives

Re: run vacuum from within a function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hugo wrote:
hi everybody,

Is it possible tu run vacuum from a plpgsql function ? I have a process that
copies a lot of data from a csv file with the copy command and at the end of
the function I would like to force a vacuun, is that possible.

I'm afraid not. VACUUM can't run inside a transaction block (BEGIN..COMMIT) which is automatically the context you have if you are inside a function.

--
  Richard Huxton
  Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux