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 6297 게시물 읽기
No. 6297
PostgreSQL 8.1 Enters Beta
작성자
신기배(소타)
작성일
2005-08-29 23:39ⓒ
2005-08-29 23:39ⓜ
조회수
3,366

Some important links you will need for testing PostgreSQL 8.1

 


size="1" />

 

PostgreSQL 8.1 Open

Items

 

Current version at

"http://candle.pha.pa.us/cgi-bin/pgopenitems" target="_blank"

cgi-bin="" candle.pha.pa.us="" http:="" designtimeurl=

"">http://candle.pha.pa.us/cgi-bin/pgopenitems.

 

Changes

 

Win32 signal handling patch (Magnus)

add better control over partial page writes

fix pg_dump --clean for roles

cosider O_SYNC as default when O_DIRECT exists

test terminate_backend()?

/contrib move to pgfoundry

bump major library version number?

foreign trigger timing issue

pgindent

fix threaded libpython's use in plpython

make sure bitmap scan optimizer settings are reasonable

 

이 글에 대한 댓글이 총 5건 있습니다.

Major changes in this release:

Improve concurrent access to the shared buffer cache (Tom)

This was accomplished by eliminating global locks and using a clock sweep algorithm to find free buffers. This increases scalability on multi-CPU systems.

Allow index scans to use an intermediate in-memory bitmap (Tom)

In previous releases, only a single index could be used to do lookups on a table. With this feature, if a query has WHERE tab.col1 = 4 and tab.col2 = 9, and there is no multicolumn index on col1 and col2, but there is an index on col1 and another on col2, it is possible to search both indexes and combine the results in memory, then do heap fetches for only the rows matching both the col1 and col2 restrictions. This is very useful in environments that have a lot of unstructured queries where it is impossible to create indexes that match all possible access conditions. Bitmap scans are useful even with a single index, as they reduce the amount of random access needed; a bitmap index scan is efficient for retrieving fairly large fractions of the complete table, whereas plain index scans are not.

Add two-phase commit (Heikki Linnakangas, Alvaro, Tom)

Two-phase commit allows transactions to be "prepared" on several computers, and once all computers have successfully prepared their transactions (none failed), all transactions can be committed. Even if a machine crashes after a prepare, the prepared transaction can be committed after the machine is restarted. New syntax includes PREPARE TRANSACTION and COMMIT/ROLLBACK PREPARED. A new system view pg_prepared_xacts has also been added.

Create a new role system that replaces users and groups (Stephen Frost)

Roles are a combination of users and groups. Like users, they can have login capability, and like groups, a role can have other roles as members. Roles basically remove the distinction between users and groups. For example, a role can:

  • Have login capability (optionally)

  • Own objects

  • Hold access permissions for database objects

  • Inherit permissions from other roles it is a member of

Once a user logs into a role, she obtains capabilities of the login role plus any inherited roles, and can use SET ROLE to switch to other roles she is a member of. This feature is a generalization of the SQL standard's concept of roles. This change also replaces pg_shadow and pg_group by new role-capable catalogs pg_authid and pg_auth_members. The old tables are redefined as read-only views on the new role tables.

Automatically use indexes for MIN() and MAX() (Tom)

In previous releases, the only way to use an index for MIN() or MAX() was to rewrite the query as SELECT col FROM tab ORDER BY col LIMIT 1. Index usage now happens automatically.

Move /contrib/pg_autovacuum into the main server (Alvaro Herrera)

Integrating autovacuum into the server allows it to be automatically started and stopped in sync with the database server, and allows autovacuum to be configured from postgresql.conf.

Add shared row level locks using SELECT ... FOR SHARE (Alvaro)

While PostgreSQL's MVCC locking allows SELECT to never be blocked by writers and therefore does not need shared row locks for typical operations, shared locks are useful for applications that require shared row locking. In particular this reduces the locking requirements imposed by referential integrity checks.

Add dependencies on shared objects, specifically roles (Alvaro)

This extension of the dependency mechanism prevents roles from being dropped while there are still database objects they own. Formerly it was possible to accidentally "orphan" objects by deleting their owner. While this could be recovered from, it was messy and unpleasant.

신기배(소타)님이 2005-08-29 23:44에 작성한 댓글입니다.

ㅎㅎㅎ 신기배님... 또 잘못 올리신 것 아닌가요? ㅋㅋㅋ

저는 auto vacuum 내장 된 것이랑 bitmap scan 추가된것이 무척 기대됩니다.

shared row level lock도 좋아 보이구요.

mailing list에서 auto vacuum이 몇몇가지 부분에서 문제가 되는 것 같았는데 해결이 되었는지 모르겠네요. 지금 수준의 vacuum 처리라고 해도 저는 일단 만족...

 

박성철(gyumee)님이 2005-08-30 00:46에 작성한 댓글입니다.

아뇨 ㅎㅎ; Q&A게시판 이긴 하지만 =_=

여기 저기 페이지를 짜집어서 만든 게시물이라서;;

뉴스에다 올리기 뭐해서 걍 올렸습니다~

신기배(소타)님이 2005-08-30 06:57에 작성한 댓글입니다.

아. auto vacuum 통합 관련해서 이 문제가 어떻게 되었는지 아시는 분 계신가요?

 

1. truncate 문제... truncate를 하면 table 내용이 전부 지워지는 것이 비해서 통계가 변하지 않기 때문에 auto vacuum이 작동하지 않는 문제...

 

2. 부하 조절... 시스템이 엄청 바쁠 때는 피해서 vacuum이 작동되게 하는 기능...

 

2번은 vacuum 속도를 늦춰서 해결하고 있고 truncate의 경우는 직접 vacuum을 실행하면 되지만.. 궁금하네요.

박성철(gyumee)님이 2005-08-30 10:26에 작성한 댓글입니다.

auto vacuum 문제는 아직 고려되지 않은 것 같습디다.

dsn 에서 돌려보면서 느끼는 것이,

 

개인적인 생각입니다만,

 

db 사용 시간이 일정하다면, 새벽 4-5시 사이에는 사용자가 거의 없다.. 이런식...

auto vacuum 보다는 cron 작업으로 일정기간 주기적으로 vacuum 작업을 하는 것이 서비스 전체적인 입장에서 보면 더 타당한 것 같습디다.

 

전세계 모든 사용사용자가 시도때도 없이 사용한다면, 현재로써는 그냥 무식하게, auto vacuum 을 쓰든지, 아니면, 계속 db 사용량을 계속 체크하고 있다가 수동으로 vacuum 작업을 하든지 해야할 것 같아요.

 

김상기(ioseph)님이 2005-08-30 10:32에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
6300날짜쿼리를 만들고 있는데..잘 확인이 안됩니다. 꼭좀 바주세요 [3]
사랑다섯
2005-08-31
2174
6299statement_timeout 의 조건과 효과를 알고 싶습니다. [2]
송효진
2005-08-30
2214
6298sequence를 Rename하는 방법이 있나요? [4]
최정대
2005-08-30
2046
6297PostgreSQL 8.1 Enters Beta [5]
신기배
2005-08-29
3366
6294[질문]테이블 두 개를 검색할 때 [3]
박병호
2005-08-29
1901
6293자동으로 계산되는 필드가 있는지..?? [5]
몰라
2005-08-26
2080
6292psql 쓰는데 트랜잭션 관리가 이상한 듯 합니다 [2]
코모리
2005-08-25
2856
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.017초, 이곳 서비스는
	PostgreSQL v16.4로 자료를 관리합니다