Unix Technical Forum

initskript after db start; locks on transactions

This is a discussion on initskript after db start; locks on transactions within the Pgsql General forums, part of the PostgreSQL category; --> Hi! I have have two questions: 1. What is the best approach to trigger a service script wich will ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 05:17 AM
Thomas Chille
 
Posts: n/a
Default initskript after db start; locks on transactions

Hi!

I have have two questions:

1.
What is the best approach to trigger a service script wich will clean
up something in the db after every db (re-)start? Has PG its own
mechanism for such things or have i to use my /etc/init.d/postgresql
script?

2.
Sometime i read something about locks on transactions. Is this only an
internal thing or can i set them by my own and if yes, for what? With
the LOCK command i can only lock tables, or?

Thanks for any help,
Thomas!

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-09-2008, 05:19 AM
Thomas F. O'Connell
 
Posts: n/a
Default Re: initskript after db start; locks on transactions


On Aug 3, 2005, at 4:33 PM, Thomas Chille wrote:

> Hi!
>
> I have have two questions:
>
> 1.
> What is the best approach to trigger a service script wich will clean
> up something in the db after every db (re-)start? Has PG its own
> mechanism for such things or have i to use my /etc/init.d/postgresql
> script?


I don't think there's anything built in that will trigger a "service
script". I'm pretty sure you'll want to add to or supplement the
existing init script.

> 2.
> Sometime i read something about locks on transactions. Is this only an
> internal thing or can i set them by my own and if yes, for what? With
> the LOCK command i can only lock tables, or?


You can use any lock mode specified:

http://www.postgresql.org/docs/8.0/static/sql-lock.html

--
Thomas F. O'Connell
Co-Founder, Information Architect
Sitening, LLC

Strategic Open Source: Open Your i™

http://www.sitening.com/
110 30th Avenue North, Suite 6
Nashville, TN 37203-6320
615-469-5150
615-469-5151 (fax)
---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:25 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com