pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: svnitsakaram94@gmail.com
Subject: BUG #15939: Postgres database size is growing due to oraphan objects
Date: Mon, 05 Aug 2019 08:15:57 +0000
Message-ID: <15939-7f3682021804c066@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15939
Logged by:          Saka Ram Dewasi
Email address:      svnitsakaram94@gmail.com
PostgreSQL version: Unsupported/Unknown
Operating system:   RHEL 7.4
Description:        

Hi All,

We have SSO based web login portal. Below is the our architecture details.

User---> Load balancer(vADC)---> Tomcat Server 7.0.19(Web Server) ---> Load
Balancer (vADC) --> 
Jboss EAP 6.2(Application Server) --> Postgres 9.3 (Database)

Here Postgres will receive user request from jboss server for login. We
found that each time when users logged out of system orphan objects are
generating which is causing database growth. We checked our database tables
which having column type is OID/bytea. We found that there are only two
tables which is having column type OID/bytea. Surprisingly , These tables
dont have any data(Only two rows in each tables). These tables are not
generating any orphan objects(LO objects). Orphan objects are stored in
pg_largeobjects table. Due to orphan objects, size of pg_largeobject is
growing hence db so. We want to implement trigger based deletion of orphan
objects ( LO objects) . But for that we have to know which application
tables are generating orphan objects. How to identify application tables
which are generating orphan objects. Kindly guide.

Thanks and Regards
Saka Dewasi



view thread (3+ messages)  latest in thread

Message-ID: <15939-7f3682021804c066@postgresql.org>
Permalink:  ../15939-7f3682021804c066@postgresql.org/
Also on:    postgresql.org/message-id/15939-7f3682021804c066@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, svnitsakaram94@gmail.com
  Subject: Re: BUG #15939: Postgres database size is growing due to oraphan objects
  In-Reply-To: <15939-7f3682021804c066@postgresql.org>
  References: <15939-7f3682021804c066@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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