[ The imperialist Japanese military must officially acknowledge and apologize for the coercion of young women into sexual slaves. / êꪤҳàõªòàõªÎÒ¿Ö˪˪·ª¿ð¨ÏÐñ«ëùìíÜâÏÚªÎ?ð¤àõªòÍëãÒªËìãªá¡¢Þóñªª·ªÊª±ªìªÐªÊªéªÊª¤. ]

»ç¿ëÀÚ

ID:
PW:

INDEX
01.°Ô½ÃÆÇ
°Ô½ÃÆÇ [72]
02.File Book
File ÀÚ·á½Ç [96]
Site Link [14]
°³ÀÎÆú´õ [200]
03.Field Book
Altibase [19]
Tibero [31]
MS-SQL [32]
MySQL [47]
DB2 [79]
ORACLE [3121]
PSQL [139]
CUBRID [5]
±âŸÁ¤º¸ [178]
¿î¿µÃ¼Á¦ [618]
04.Q/A Book
Q/A [53]
05.¹æ¸í·Ï
¹æ¸í·Ï [54]
·¹º§¾÷ [37]
±¸ÀÎ/±¸Á÷ [2]

±â³äÀÏ
Search
LINK
+ °¡Á· Hompy
+ DNSEver
IOTN :: Field Book :: PostgreSQL

 È¸¿ø°¡ÀÔ

pg_ctl start -D . | postmaster.pid | /tmp/.s.PGSQL.5432 |
ÃÖ±æÈ£ [LIST]   2023-02-03 09:45:38, Á¶È¸ : 66


DB À§Ä¡ È®ÀÎ
postgres=# show data_directory;
      data_directory      
--------------------------
/home/postgres/15.1/data
(1 row)

cd /home/postgres/pg_basebackup
grep ^port postgresql.conf
port = 5433 [ ´Ù¸£¸é ¿©·¯°³ DB ¿î¿µ °¡´É ]

pg_ctl start -D .

cat postmaster.opts
-------------------------
/home/postgres/15.1/bin/postgres "-D" "."

cat postmaster.pid
-------------------------
67379
/home/postgres/pg_basebackup
1675382797      [ PID    ]
5433            [ Æ÷Æ®   ]
/tmp            [ ¼ÒÄÏ   ]
0.0.0.0         [ ¸®½º³Ê ]
22552355   3309576
ready

psql -p 5433 -c "insert into test values ( now() );"

¿î¿µÁß Çѹø´õ start ½ÇÇàÇϸé
pg_ctl start -D . [ postmaster.pid È®ÀÎ ÇÏ´Â ¸Þ¼¼Áö ]
-------------------------
pg_ctl: another server might be running; trying to start server anyway
waiting for server to start....2023-02-03 09:10:13.209 KST [67781] FATAL:  lock file "postmaster.pid" already exists
2023-02-03 09:10:13.209 KST [67781] HINT:  Is another postmaster (PID 67379) running in data directory "/home/postgres/pg_basebackup"?
stopped waiting
pg_ctl: could not start server

ls -alrt /tmp | grep PG
-------------------------
-rw-------   1 postgres dba      52  2¿ù  3 09:05 .s.PGSQL.5432.lock
srwxrwxrwx   1 postgres dba       0  2¿ù  3 09:05 .s.PGSQL.5432
-rw-r-----   1 postgres dba      56  2¿ù  3 09:35 .s.PGSQL.5433.lock
srwxrwxrwx   1 postgres dba       0  2¿ù  3 09:35 .s.PGSQL.5433

fuser /tmp/.s.PGSQL.5432
-------------------------
/tmp/.s.PGSQL.5432:  73068

ps -ef | grep 73068
-------------------------
postgres 73068     1  0  2¿ù02 ?       00:00:01 /home/postgres/15.1/bin/postgres
postgres 73069 73068  0  2¿ù02 ?       00:00:00 postgres: logger
postgres 73070 73068  0  2¿ù02 ?       00:00:00 postgres: checkpointer
postgres 73071 73068  0  2¿ù02 ?       00:00:00 postgres: background writer
postgres 73073 73068  0  2¿ù02 ?       00:00:00 postgres: walwriter
postgres 73074 73068  0  2¿ù02 ?       00:00:00 postgres: autovacuum launcher
postgres 73075 73068  0  2¿ù02 ?       00:00:00 postgres: archiver last was 0000000200000004000000A4
postgres 73076 73068  0  2¿ù02 ?       00:00:00 postgres: logical replication launcher

vi postmaster.pid
67379 => 67370 º¯°æÇÏ°í ½ÃÀÛ Çϸé
pg_ctl start -D . [ ºñÁ¤»ó È®ÀÎÇÏ°í DB ¼­ºñ½º Á¾·á ½ÃŲ´Ù ]
-------------------------
pg_ctl: another server might be running; trying to start server anyway
waiting for server to start....2023-02-03 09:10:36.678 KST [67815] FATAL:  pre-existing shared memory block (key 22552355, ID 3309576) is still in use
2023-02-03 09:10:36.678 KST [67815] HINT:  Terminate any old server processes associated with data directory "/home/postgres/pg_basebackup".
stopped waiting
pg_ctl: could not start server
Examine the log output.
log Á¤º¸
-------------------------
LOG:  lock file "postmaster.pid" contains wrong PID: 67370 instead of 67379
LOG:  performing immediate shutdown because data directory lock file is invalid
LOG:  received immediate shutdown request
LOG:  database system is shut down
18.97.9.172


  LIST

Á¦¸ñ ÀÛ¼ºÀÚ ÀÛ¼ºÀÏ Á¶È¸
Admin  CentOS 5 ¼³Ä¡ °¡´É psql 11.22 ¼³Ä¡    ÃÖ±æÈ£ 2024/11/21 1
Admin  ERROR: permission denied: "RI_ConstraintTrigger_331308" is a system trigger / violates foreign key constraint    ÃÖ±æÈ£ 2024/10/28 6
Admin  ³¯Â¥ ¼ýÀÚ date unix epoch    ÃÖ±æÈ£ 2024/09/02 6
Admin  pg_backup_start / pg_backup_stop / psql ¼¼¼Ç À¯Áö / WARNING: aborting backup due to backend exiting before pg_backup_stop was called    ÃÖ±æÈ£ 2023/12/21 55
Admin  psql 10.7 oracle dblink [ oracle_fdw db link ]    ÃÖ±æÈ£ 2023/07/25 58
Admin  HA º¹±¸ test    ÃÖ±æÈ£ 2023/03/03 1856
Admin  log: COPY public.xxxx (xxx, xxx, xxx) TO stdout; / pg_dump ¹é¾÷½Ã ¹ß»ý    ÃÖ±æÈ£ 2023/03/03 43
Admin  requested timeline x is not a child of this server's history    ÃÖ±æÈ£ 2023/03/02 51
Admin  recovery_target_action / archive log ¹Þ¾Æ¼­ °è¼Ó º¹±¸    ÃÖ±æÈ£ 2023/02/28 56
Admin  recovery_target_action = 'pause' / select pg_wal_replay_pause(); / select pg_get_wal_replay_pause_state();    ÃÖ±æÈ£ 2023/02/27 40
Admin  memory buffer cache    ÃÖ±æÈ£ 2023/02/06 40
Admin  active session, pid, lock sql , kill pid / pg_terminate_backend    ÃÖ±æÈ£ 2023/02/06 105
Admin  psql HA    ÃÖ±æÈ£ 2023/02/05 539
Admin  pg_ctl start -D . | postmaster.pid | /tmp/.s.PGSQL.5432 |    ÃÖ±æÈ£ 2023/02/03 66
Admin  pg_waldump    ÃÖ±æÈ£ 2023/02/03 45
Troubleshoot  $PGDATA/pg_wal/00000002.history ¾ø´Â°æ¿ì [ ERROR: could not open file "pg_wal/00000002.history": ENOENT ]    ÃÖ±æÈ£ 2023/02/02 60
Admin  shmem_exit(0): 0 before_shmem_exit callbacks to make [ ·Î±× ±â·Ï¿ë ]    ÃÖ±æÈ£ 2023/02/01 97

    ¸ñ·Ïº¸±â   ´ÙÀ½ÆäÀÌÁö 1 [2][3][4][5][6][7]
       

Copyright 1999-2024 Zeroboard / skin by ÃÖ±æÈ£(gilho.kr@gmail.com)
ÃÖ±Ù ´ñ±Û
ÃÖ±Ù °Ô½Ã¹°
11/21
[PSQL]
CentOS 5 ¼³Ä¡ °¡´É psql 11.22 ¼³Ä¡.
by ÃÖ±æÈ£
10/28
[PSQL]
ERROR: permission denied: "RI....
by ÃÖ±æÈ£
10/25
[¿î¿µÃ¼Á¦]
yum install / "Could not resol....
by ÃÖ±æÈ£