pg_logicalInspect
모듈은 스포츠 토토적 디코딩 구성 요소의 내용을 검사 할 수있는 SQL 기능을 제공합니다. 실행중인 직렬화 된 스포츠 토토적 스냅 샷을 검사 할 수 있습니다PostgreSQL디버깅 또는 교육 목적에 유용한 데이터베이스 클러스터.
기본적으로 이러한 함수의 사용은 슈퍼업자 및 멤버로 제한됩니다PG_READ_SERVER_FILES
역할. 슈퍼업자가 접근 할 수있는 다른 사람에게 액세스 권한을 부여 할 수 있습니다.grant
.
PG_GET_LOGICAL_SNAPSHOT_META (FILENAME 텍스트) 레코드를 반환
#서버에 위치한 스냅 샷 파일에 대한 스포츠 토토적 스냅 샷 메타 데이터 가져 오기PG_LOGICAL/SNAPSHOTS
디렉토리. 그만큼filename
인수는 스냅 샷 파일 이름을 나타냅니다. 예를 들어:
postgres =# select * from pg_ls_logicalsnapdir (); -[레코드 1]+------------------------- 이름 | 0-40796E18.snap 크기 | 152 수정 | 2024-08-14 16 : 36 : 32+00 postgres =# select * from pg_get_logical_snapshot_meta ( '0-40796e18.snap'); -[레코드 1] -------- 마술 | 1369563137 체크섬 | 1028045905 버전 | 6 postgres =# ss.name, meta.*에서 pg_ls_logicalsnapdir ()에서 ss, ss, 메타로서 pg_get_logical_snapshot_meta (ss.name); -[레코드 1] ---------- 이름 | 0-40796E18.snap 마술 | 1369563137 체크섬 | 1028045905 버전 | 6
iffilename
스냅 샷 파일과 일치하지 않으면 함수가 오류가 발생합니다.
PG_GET_LOGICAL_SNAPSHOT_INFO (FILENAME 텍스트) 레코드를 반환
#서버에있는 스냅 샷 파일에 대한 스포츠 토토적 스냅 샷 정보 가져 오기PG_LOGICAL/SNAPSHOTS
디렉토리. 그만큼filename
인수는 스냅 샷 파일 이름을 나타냅니다. 예를 들어:
postgres =# select * from pg_ls_logicalsnapdir (); -[레코드 1]+------------------------- 이름 | 0-40796E18.snap 크기 | 152 수정 | 2024-08-14 16 : 36 : 32+00 postgres =# select * from pg_get_logical_snapshot_info ( '0-40796e18.snap'); -[레코드 1] -----------+----------- 상태 | 일관된 xmin | 751 xmax | 751 start_decoding_at | 0/40796AF8 2_PHASE_AT | 0/40796AF8 initial_xmin_horizon | 0 building_full_snapshot | 에프 in_slot_creation | 에프 last_serialized_snapshot | 0/0 next_phase_at | 0 Committed_Count | 0 Committed_Xip | catchange_count | 2 catchange_xip | 751,752 postgres =# ss.name, info.*에서 pg_ls_logicalsnapdir ()에서 ss, ss, pg_get_logical_snapshot_info (ss.name) 정보; -[레코드 1] -----------+---------------- 이름 | 0-40796E18.snap 상태 | 일관된 xmin | 751 xmax | 751 start_decoding_at | 0/40796AF8 2_PHASE_AT | 0/40796AF8 initial_xmin_horizon | 0 building_full_snapshot | 에프 in_slot_creation | 에프 last_serialized_snapshot | 0/0 next_phase_at | 0 Committed_Count | 0 Committed_Xip | catchange_count | 2 catchange_xip | 751,752
iffilename
스냅 샷 파일과 일치하지 않으면 함수가 오류가 발생합니다.
Bertrand Drouvot<bertranddrouvot.pg@gmail.com