Re: Regarding template1 database

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: S H <msq001(at)live(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Regarding template1 database
Date: 2013-04-23 03:01:38
Message-ID: 5175F992.3090806@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)klaver(at)gmail(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message S H 2013-04-23 03:08:39 Re: Regarding template1 database
Previous Message S H 2013-04-23 02:48:03 Regarding template1 database