| From: | Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> |
|---|---|
| To: | Yan Cheng CHEOK <yccheok(at)yahoo(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Run Vacuum Through JDBC |
| Date: | 2010-05-11 23:57:21 |
| Message-ID: | AANLkTilIv9L9KolOItSkYeEvA2rVPi2COy9WvaWrqsWb@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Mon, May 10, 2010 at 11:38 PM, Yan Cheng CHEOK <yccheok(at)yahoo(dot)com> wrote:
> I was wondering, how can I check whether Vacuum operation had been executed without problem?
>
> I use the following Java code to execute Vacuum operation
>
> final Statement st2 = connection.createStatement();
> st2.executeUpdate("VACUUM FULL ANALYZE VERBOSE");
> st2.close();
On a side note, unless you have extenuating circumstances, vacuum is
preferred over vacuum full. If you must run vacuum full, pay
attention to possible index bloating.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Luis Guillermo Dangel | 2010-05-12 00:41:23 | Question about Beta for Windows 64 bits |
| Previous Message | Scott Marlowe | 2010-05-11 21:29:04 | Re: Moving postgresql data to another computer |