Re: Fwd: I could not see any row in audit table

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Shailesh Singh <shailesh(dot)singh1988(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Fwd: I could not see any row in audit table
Date: 2017-01-25 14:26:35
Message-ID: 57bc1486-4a12-376b-1211-acc0ad344c93@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On 01/25/2017 03:03 AM, Shailesh Singh wrote:
>
>
>
> Dear Group Member ,
>
>
> I had configured the audit trigger for my datbase following the below
> document url:
>
> *https://wiki.postgresql.org/wiki/Audit_trigger_91plus
> <https://wiki.postgresql.org/wiki/Audit_trigger_91plus>
>
>
> *
> Now my audit table :
>
> CREATE TABLE audit.logged_actions (
> event_id bigserial PRIMARY KEY,
> schema_name text NOT NULL,
> TABLE_NAME text NOT NULL,
> relid oid NOT NULL,
> session_user_name text,
> action_tstamp_tx TIMESTAMP WITH TIME ZONE NOT NULL,
> action_tstamp_stm TIMESTAMP WITH TIME ZONE NOT NULL,
> action_tstamp_clk TIMESTAMP WITH TIME ZONE NOT NULL,
> transaction_id BIGINT,
> application_name text,
> client_addr inet,
> client_port INTEGER,
> client_query text NOT NULL,
> action CHAR(1) NOT NULL CHECK (action IN ('I','D','U', 'T')),
> row_data hstore,
> changed_fields hstore,
> statement_only BOOLEAN NOT NULL
> );
>
>
> Now this table contains 50 GB of data , But when taking its backup using
> pg_dump and after restoring , it show that it has zero row.

What was the dump command you used?

Where there any errors during the restore?

>
>
> How to see the restored data?
> **
>
> --
> With Regards!
> Shailesh Singh
>
>
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message ProPAAS DBA 2017-01-25 16:02:02 psql only works with -h (even localhost)
Previous Message Raymond O'Donnell 2017-01-25 11:54:57 Re: Fwd: I could not see any row in audit table

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2017-01-25 14:37:11 Re: Assignment of valid collation for SET operations on queries with UNKNOWN types.
Previous Message David Fetter 2017-01-25 14:16:16 Re: COPY as a set returning function