R: [GENERAL] Vacuum full: alternatives?

2016-06-22 Thread Job
Excellent Scott! Thank you! Francesco Da: Scott Marlowe [scott.marl...@gmail.com] Inviato: martedì 21 giugno 2016 2.06 A: Job Cc: pgsql-general@postgresql.org Oggetto: Re: [GENERAL] Vacuum full: alternatives? On Mon, Jun 20, 2016 at 3:18 AM, Job wrote: >

R: R: [GENERAL] Vacuum full: alternatives?

2016-06-21 Thread Job
to: Re: R: [GENERAL] Vacuum full: alternatives? On Mon, Jun 20, 2016 at 7:23 AM, Martín Marqués wrote: > El 20/06/16 a las 09:50, Melvin Davidson escribió: >> >> >>>but it won't let it grow too (or am I missing something). >> >> Yes, you are missing something. B

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Melvin Davidson
On Mon, Jun 20, 2016 at 1:53 PM, Vik Fearing wrote: > On 20/06/16 17:25, Melvin Davidson wrote: > >>And you haven't read Vik's reply. :) > > > > Yes I have. Vacuum wll not lock all tables at once, only the ones it is > > currently working on, so the planner may have a slight delay, > > but it wil

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Vik Fearing
On 20/06/16 17:25, Melvin Davidson wrote: >>And you haven't read Vik's reply. :) > > Yes I have. Vacuum wll not lock all tables at once, only the ones it is > currently working on, so the planner may have a slight delay, > but it will not be gigantic. I think you should try it. > I have proposed

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Jeff Janes
On Mon, Jun 20, 2016 at 7:23 AM, Martín Marqués wrote: > El 20/06/16 a las 09:50, Melvin Davidson escribió: >> >> >>>but it won't let it grow too (or am I missing something). >> >> Yes, you are missing something. By partioning and {Vacuum Full only the >> table with data no longer needed}, the res

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread John R Pierce
On 6/20/2016 8:03 AM, Scott Mead wrote: I believe that free space is only available to UPDATE, not INSERT. incorrect. in fact, an update is performed identically to an INSERT + DELETE(old) -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-general mailing list (pgsql-gen

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Martín Marqués
El 20/06/16 a las 11:52, Jeff Janes escribió: > On Mon, Jun 20, 2016 at 3:13 AM, Andreas Kretschmer > wrote: >> >> >> Am 20.06.2016 um 11:43 schrieb Job: >>> >>> Hi Andreas, >>> I would suggest run only autovacuum, and with time you will see a not more growing table. There is no need for

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Melvin Davidson
On Mon, Jun 20, 2016 at 11:18 AM, Martín Marqués wrote: > El 20/06/16 a las 12:06, Melvin Davidson escribió: > > > > Martin and Vik, > > > >>...Think about a SELECT which has to scan all child tables. > > > > You are really digging for a corner case. > > If a scan has to scan all child tables, th

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Martín Marqués
El 20/06/16 a las 12:06, Melvin Davidson escribió: > > Martin and Vik, > >>...Think about a SELECT which has to scan all child tables. > > You are really digging for a corner case. > If a scan has to scan all child tables, then > A. it negates the ability to make partitions which are not used >

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Guillaume Lelarge
2016-06-20 17:03 GMT+02:00 Scott Mead : > > > On Mon, Jun 20, 2016 at 6:13 AM, Andreas Kretschmer < > andr...@a-kretschmer.de> wrote: > >> >> >> Am 20.06.2016 um 11:43 schrieb Job: >> >>> Hi Andreas, >>> >>> I would suggest run only autovacuum, and with time you will see a not more growing ta

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Melvin Davidson
On Mon, Jun 20, 2016 at 11:03 AM, Scott Mead wrote: > > > On Mon, Jun 20, 2016 at 6:13 AM, Andreas Kretschmer < > andr...@a-kretschmer.de> wrote: > >> >> >> Am 20.06.2016 um 11:43 schrieb Job: >> >>> Hi Andreas, >>> >>> I would suggest run only autovacuum, and with time you will see a not mo

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Scott Mead
On Mon, Jun 20, 2016 at 6:13 AM, Andreas Kretschmer wrote: > > > Am 20.06.2016 um 11:43 schrieb Job: > >> Hi Andreas, >> >> I would suggest run only autovacuum, and with time you will see a not >>> more growing table. There is no need for vacuum full. >>> >> So new record, when will be pg_bulkloa

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Jeff Janes
On Mon, Jun 20, 2016 at 3:13 AM, Andreas Kretschmer wrote: > > > Am 20.06.2016 um 11:43 schrieb Job: >> >> Hi Andreas, >> >>> I would suggest run only autovacuum, and with time you will see a not >>> more growing table. There is no need for vacuum full. >> >> So new record, when will be pg_bulkloa

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Martín Marqués
2016-06-20 11:30 GMT-03:00 Vik Fearing : > On 20/06/16 16:23, Martín Marqués wrote: >> >> That's not entirely true. Think about a SELECT which has to scan all >> child tables. > > Or any SELECT on the parent at all. The planner needs to examine the > CHECK constraints on the children and can't do

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Alex Ignatov
On 20.06.2016 17:30, Vik Fearing wrote: On 20/06/16 16:23, Martín Marqués wrote: El 20/06/16 a las 09:50, Melvin Davidson escribió: but it won't let it grow too (or am I missing something). Yes, you are missing something. By partioning and {Vacuum Full only the table with data no longer nee

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Vik Fearing
On 20/06/16 16:23, Martín Marqués wrote: > El 20/06/16 a las 09:50, Melvin Davidson escribió: >> >> >>> but it won't let it grow too (or am I missing something). >> >> Yes, you are missing something. By partioning and {Vacuum Full only the >> table with data no longer needed}, the rest of the data

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Martín Marqués
El 20/06/16 a las 09:50, Melvin Davidson escribió: > > >>but it won't let it grow too (or am I missing something). > > Yes, you are missing something. By partioning and {Vacuum Full only the > table with data no longer needed}, the rest of the data remains > available to the users > AND space is

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Adarsh Sharma
row too (or am I missing something). >> >> >> -- >> *From:* Job >> *To:* Rakesh Kumar ; " >> pgsql-general@postgresql.org" >> *Sent:* Monday, June 20, 2016 5:39 AM >> *Subject:* R: [GENERAL] Vacuum full: alternatives? >> >> Hi Rakes

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Melvin Davidson
akesh Kumar ; " > pgsql-general@postgresql.org" > *Sent:* Monday, June 20, 2016 5:39 AM > *Subject:* R: [GENERAL] Vacuum full: alternatives? > > Hi Rakesh, > > if i do not free disk space, after some days disk can become full. > Everyday we

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Rakesh Kumar
But then autovaccum avoids this. Granted it won't give back free space to OS, but it won't let it grow too (or am I missing something). From: Job To: Rakesh Kumar ; "pgsql-general@postgresql.org" Sent: Monday, June 20, 2016 5:39 AM Subject: R: [GENERAL] Vacuu

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Melvin Davidson
On Mon, Jun 20, 2016 at 6:13 AM, Andreas Kretschmer wrote: > > > Am 20.06.2016 um 11:43 schrieb Job: > >> Hi Andreas, >> >> I would suggest run only autovacuum, and with time you will see a not >>> more growing table. There is no need for vacuum full. >>> >> So new record, when will be pg_bulkloa

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Andreas Kretschmer
Am 20.06.2016 um 11:43 schrieb Job: Hi Andreas, I would suggest run only autovacuum, and with time you will see a not more growing table. There is no need for vacuum full. So new record, when will be pg_bulkloaded, will replace "marked-free" location? exactly, that's the task for vacuum

Re: R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Robert Wysocki
On Mon, 2016-06-20 at 11:43 +0200, Job wrote: > Hi Andreas, > > >I would suggest run only autovacuum, and with time you will see a not > >more growing table. There is no need for vacuum full. > > So new record, when will be pg_bulkloaded, will replace "marked-free" > location? Yes, but you may

R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Job
Hi Andreas, >I would suggest run only autovacuum, and with time you will see a not >more growing table. There is no need for vacuum full. So new record, when will be pg_bulkloaded, will replace "marked-free" location? Thank you! Francesco Da: pgsql-gen

R: [GENERAL] Vacuum full: alternatives?

2016-06-20 Thread Job
Hi Rakesh, if i do not free disk space, after some days disk can become full. Everyday we have a lot of pg_bulkload and delete. Thank you! Francesco Da: pgsql-general-ow...@postgresql.org [pgsql-general-ow...@postgresql.org] per conto di Rakesh Kumar [rakeshkuma