pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #16012: vacuum full, something weird
2+ messages / 2 participants
[nested] [flat]

* BUG #16012: vacuum full, something weird
@ 2019-09-18 13:24 PG Bug reporting form <noreply@postgresql.org>
  2019-09-18 20:31 ` Re: BUG #16012: vacuum full, something weird Jeff Janes <jeff.janes@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Bug reporting form @ 2019-09-18 13:24 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: richard.klaumann@gmail.com

The following bug has been logged on the website:

Bug reference:      16012
Logged by:          Richard Klaumann
Email address:      richard.klaumann@gmail.com
PostgreSQL version: 9.5.3
Operating system:   Centos 7.x
Description:        

Hello,
First sorry for my english.
Today we store our byteas in tables. We are moving these files to
storages.
During the process we set the bytea column to null and execute vacum full
(in the table itself and in the table pg_catalog.pg_largeobject).
In some tables we continue with pg_total_relation_size> 24GB (practically
the initial size). Data in the toast table.
If I run a new vacuum full on the main table, the space is freed.

Can someone help me?

Sorry if it's not the correct list.

Thankful,
Richard



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #16012: vacuum full, something weird
  2019-09-18 13:24 BUG #16012: vacuum full, something weird PG Bug reporting form <noreply@postgresql.org>
@ 2019-09-18 20:31 ` Jeff Janes <jeff.janes@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Jeff Janes @ 2019-09-18 20:31 UTC (permalink / raw)
  To: PG Bug reporting form <noreply@postgresql.org>; +Cc: pgsql-bugs <pgsql-bugs@lists.postgresql.org>; richard.klaumann@gmail.com

On Wed, Sep 18, 2019 at 9:25 AM PG Bug reporting form <
noreply@postgresql.org> wrote:

> The following bug has been logged on the website:
>
> Bug reference:      16012
> Logged by:          Richard Klaumann
> Email address:      richard.klaumann@gmail.com
> PostgreSQL version: 9.5.3
> Operating system:   Centos 7.x
> Description:
>
> Hello,
> First sorry for my english.
> Today we store our byteas in tables. We are moving these files to
> storages.
> During the process we set the bytea column to null and execute vacum full
> (in the table itself and in the table pg_catalog.pg_largeobject).
>

pg_largeobject has nothing to do with data stored in bytea columns.


> In some tables we continue with pg_total_relation_size> 24GB (practically
> the initial size). Data in the toast table.
> If I run a new vacuum full on the main table, the space is freed.
>

Data can only be freed once every snapshot that could possibly be
interested in it has closed.

So if you have any long-running statements, or long-open transactions with
isolation level above read-committed, it would inhibit the removal of the
data by vacuum full (or any other level of vacuum)

Cheers,

Jeff

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-09-18 20:31 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-09-18 13:24 BUG #16012: vacuum full, something weird PG Bug reporting form <noreply@postgresql.org>
2019-09-18 20:31 ` Jeff Janes <jeff.janes@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox