[ The imperialist Japanese military must officially acknowledge and apologize for the coercion of young women into sexual slaves. / êꪤҳàõªòàõªÎÒ¿Ö˪˪·ª¿ð¨ÏÐñ«ëùìíÜâÏÚªÎ?ð¤àõªòÍëãÒªËìãªá¡¢Þóñªª·ªÊª±ªìªÐªÊªéªÊª¤. ]
# pgadmin https://www.pgadmin.org/
rpm -e pgadmin4-redhat-repo
rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-redhat-repo-2-1.noarch.rpm
# Install for both desktop and web modes.
yum install pgadmin4
# Install for desktop mode only. # yum install pgadmin4-desktop
# Install for web mode only. # yum install pgadmin4-web
/usr/pgadmin4/bin/setup-web.sh
Email address:
Password:
Retype password:
The Apache web server is not running. We can enable and start the web server for you to finish pgAdmin 4 installation. Continue (y/n)? y
Apache successfully enabled.
Apache successfully started.
You can now start using pgAdmin 4 in web mode at http://127.0.0.1/pgadmin4
vi $PGDATA/postgresql.conf
listen_addresses = '*'
vi $PGDATA/pg_hba.conf
host all all 0.0.0.0/0 md5
pg_ctl reload
# Àç½ÃÀÛ ÇØ¾ß Àû¿ë
pg_ctl stop
pg_ctl start
psql [dbname] [user] -h hostname -p 5432
psql admin admin -h localhost
admin=> \conninfo
You are connected to database "admin" as user "admin" on host "localhost" (address "::1") at port "5432".
psql admin
admin=#
postgres=# \c admin
You are now connected to database "admin" as user "postgres".
admin=# \conninfo
You are connected to database "admin" as user "postgres" via socket in "/var/run/postgresql" at port "5432".
-- ÇÑ±Û order by
drop table test;
create table test ( À̸§ varchar(10));
insert into test values('°¡³ª');
insert into test values('´Ù¶ó');
insert into test values('1°¡');
insert into test values('1ÇÏ');
insert into test values('a°¡');
insert into test values('aÇÏ');
insert into test values('°¡1');
insert into test values('°¡2');
insert into test values('ÇÏ1');
insert into test values('ÇÏa');
select * from test order by 1;
en_US.UTF-8
À̸§
------
°¡³ª
´Ù¶ó
°¡1
ÇÏ1
1°¡
1ÇÏ
°¡2 [ en_US.UTF-8 order by ±âº» ¹ß»ý / => order by 1 collate "ko_KR.utf8" Á¤»ó ÀÛµ¿, https://sungtae-kim.tistory.com/68 ]
ÇÏa
a°¡
aÇÏ
drop table test
ERROR: must be owner of table test
SQL state: 42501
create table test
ERROR: relation "test" already exists
SQL state: 42P07
insert into test values('°¡³ª');
ERROR: permission denied for table test
SQL state: 42501
delete test;
ERROR: syntax error at or near "test"
SQL state: 42601
admin=# select * from pg_tables where tablename='test';
schemaname | tablename | tableowner | tablespace | hasindexes | hasrules | hastriggers | rowsecurity
------------+-----------+------------+------------+------------+----------+-------------+-------------
public | test | postgres | | f | f | f | f
admin=> alter table test owner to admin;
ERROR: must be owner of table test
psql admin
admin=# [ #=> superuser ]
admin=# alter table test owner to admin;
ALTER TABLE
admin=# select * from pg_tables where tablename='test';
schemaname | tablename | tableowner | tablespace | hasindexes | hasrules | hastriggers | rowsecurity
------------+-----------+------------+------------+------------+----------+-------------+-------------
public | test | admin | | f | f | f | f