database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
ㆍPostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
PostgreSQL Q&A 2144 게시물 읽기
No. 2144
Transaction 이 열려 있는 postmaster 를 postgresql stop 으로 중지시킬 수 있는가?
작성자
정재익
작성일
2001-01-11 21:42
조회수
4,071

이런 글이 메일링 리스트에 있어서 올려 둡니다. 혹시 궁금해 하시는 분이 있을까 봐... :/)

 

> When I want to shutdown PostgreSQL, I use the command

> /etc/rc.d/init.d/postgresql stop

> But only pg_ctl and one postmaster stops :/(

 

"pg_ctl stop" performs a polite shutdown of the database /// ie,

existing clients are allowed to finish their sessions. The postmaster

stops accepting new connections, but doesn't quit until the last

active backend quits.

 

"pg_ctl /m fast stop" is probably what you are looking for: existing

clients are forcibly disconnected (with rollback of any open

transactions). If you have clients that will sit on open connections

indefinitely, this is the only way to shut down short of killing the

clients.

 

Dunno if this option can be passed through your

/etc/rc.d/init.d/postgresql script; the script may need some work.

 

> That means that I have to use the command "top" to see the other

> postmaster processes and kill them one by one.

 

As was just pointed out on pghackers, manually killing individual

backends is not merely tedious, it is dangerous. Avoid it.

 

regards, tom lane

[Top]
No.
제목
작성자
작성일
조회
2150데이타 베이스 초기화는 성공했으니 데몬은 실패하는 이유가 몰까요?
나그네
2001-01-13
4390
2151┕>Re: 데이타 베이스 초기화는 성공했으니 데몬은 실패하는 이유가 몰까요?
정재익
2001-01-13 18:32:46
5518
2147어떤 디렉트로의 어떤내용을 백업 받나요
밝은세상
2001-01-12
3676
2149┕>Re: 어떤 디렉트로의 어떤내용을 백업 받나요
정재익
2001-01-13 13:48:42
4247
2145table에 lock 이 걸린것 같은데...
밝은세상
2001-01-12
4222
2146┕>Re: table에 lock 이 걸린것 같은데...
정재익
2001-01-12 13:47:09
4249
2144Transaction 이 열려 있는 postmaster 를 postgresql stop 으로 중지시킬 수 있는가?
정재익
2001-01-11
4071
2142solaris 에서 JSERV 설치시에 에러, 어케해야 하나요?
김동만
2001-01-11
3673
2141jdbc에서 컴파일시 에러메세지에 대해서 문의 드립니다.
김성훈
2001-01-10
4753
2148┕>Re: jdbc에서 컴파일시 에러메세지에 대해서 문의 드립니다.
2001-01-13 11:48:39
4516
2138PostgreSQL DB저장에 대해...
김성수
2001-01-09
4338
2143┕>Re: PostgreSQL DB저장에 대해...
정재익
2001-01-11 19:31:52
4972
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.030초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다