Re: Regarding template1 database - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Regarding template1 database
Date
Msg-id 5175F992.3090806@gmail.com
Whole thread Raw
In response to Regarding template1 database  (S H <msq001@live.com>)
Responses Re: Regarding template1 database
List pgsql-general
On 04/22/2013 07:48 PM, S H wrote:
> I would like some assistance in understanding of template1 database.
> - I want to know the tables of tempate1

There are none, unless you choose to add some.

> - I want to know when there is any insertion/updation in template1
> theoretically.

You could if you create a table.

> - If i want to monitor the transactions done in the template1 database (
> insertion/updation ) , is there any way to track the same.

You would need to write something like a trigger function or turn up the
logging and parse the logs.


Might want to review the template database docs to see how templates are
intended to be used, generally not as an 'active' database:

http://www.postgresql.org/docs/9.2/static/manage-ag-templatedbs.html

>
> ~SH
>


--
Adrian Klaver
adrian.klaver@gmail.com


pgsql-general by date:

Previous
From: S H
Date:
Subject: Regarding template1 database
Next
From: S H
Date:
Subject: Re: Regarding template1 database