'프로그램 사용'에 해당되는 글 2277건

  1. 2019.06.18 xsd to postgresql DDL
  2. 2019.06.14 gcc5 atoi / stoi
  3. 2019.06.14 postgresql dbms 설정
  4. 2019.06.13 docker run -p hport:cport
  5. 2019.06.13 pgadmin dashboard 살려내기
  6. 2019.06.12 postresql backup & recovery
  7. 2019.06.12 postgresql schema
  8. 2019.06.12 docker api
  9. 2019.06.11 docker ps 옵션 차이
  10. 2019.06.10 docker 컨테이너 이미지 이름으로 검색하기

별다르게 빌드 안하고 이미 빌드 된 녀석으로 바로 실행해도 잘 된다.

java -classpath ./xsd2pgschema.jar xsd2pgschema --xsd xsd_file > ddl.psql

[링크 : https://sourceforge.net/projects/xsd2pgschema/]

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

postgresql truncate table  (0) 2019.06.25
libpq  (0) 2019.06.24
postgresql dbms 설정  (0) 2019.06.14
pgadmin dashboard 살려내기  (0) 2019.06.13
postresql backup & recovery  (0) 2019.06.12
Posted by 구차니
프로그램 사용/gcc2019. 6. 14. 15:28

????

'프로그램 사용 > gcc' 카테고리의 다른 글

gcc의 linker 옵션 은 가장 끝에  (0) 2019.06.21
c large file support  (0) 2019.06.21
gcc variadic macro  (0) 2017.06.20
문자열에 escape 로 특수문자 넣기  (0) 2017.06.19
gcc cpp type (유니코드 문자열)  (0) 2017.04.04
Posted by 구차니

WAL은 트랜잭션 데이터?

 

[링크 : http://hochul.net/blog/postgresql-configuration-tuning-basic-guide/]

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

libpq  (0) 2019.06.24
xsd to postgresql DDL  (0) 2019.06.18
pgadmin dashboard 살려내기  (0) 2019.06.13
postresql backup & recovery  (0) 2019.06.12
postgresql schema  (0) 2019.06.12
Posted by 구차니
프로그램 사용/docker2019. 6. 13. 10:13

헐.. 반대로 생각하고 있었네?

 

[링크 : https://gist.github.com/nacyot/8366310]

'프로그램 사용 > docker' 카테고리의 다른 글

docker desktop for windows  (0) 2019.07.09
docker / win10 home / hyper-V  (0) 2019.07.09
docker api  (0) 2019.06.12
docker ps 옵션 차이  (0) 2019.06.11
docker 컨테이너 이미지 이름으로 검색하기  (0) 2019.06.10
Posted by 구차니

실수로 오른쪽의 X를 눌러 없앴는데

다시 살리는법 찾다가 도움되는건 못보고

걍 위에 우클릭하고 Add Panel 하니 다시 살릴수 있네...

 

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

xsd to postgresql DDL  (0) 2019.06.18
postgresql dbms 설정  (0) 2019.06.14
postresql backup & recovery  (0) 2019.06.12
postgresql schema  (0) 2019.06.12
postgres db 속도 향상  (0) 2019.06.07
Posted by 구차니

기존의 시스템에서 사용자가 설치한 postgresql 을 쓰고 있는데

이걸 리눅스 패키지에서 제공하는 녀석으로 파일 레벨에서 갈아 치우는 방법 찾는 중

(일일이 백업해서 옮기기 귀찮...)

 

[링크 : https://www.postgresql.org/docs/9.1/backup-file.html]

[링크 : https://stackabuse.com/backing-up-and-restoring-postgresql-databases/]

 

 

+

[링크 : https://h391106.tistory.com/352]

 

 

+

정 안되면 

pg_dumpall | gzip > backup.gz

식으로 한번 뺴봐야 할 듯

 

[링크 : https://www.postgresql.org/docs/9.1/backup-dump.html]

 

+

[링크 : https://www.opsdash.com/blog/postgresql-backup-restore.html]

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

postgresql dbms 설정  (0) 2019.06.14
pgadmin dashboard 살려내기  (0) 2019.06.13
postgresql schema  (0) 2019.06.12
postgres db 속도 향상  (0) 2019.06.07
postgresql drop all tables  (0) 2019.06.05
Posted by 구차니

pgadmin 으로 보다 보니 database > schema > table 순서로 냐오는게 있어서 찾는중

기본은 public schema인데 이게 머하는거지?

 

DB는 하나 이상의 'named schemaf'를 포함함. 

일단은.. 귀찮으면 기본으로 제공되는 public 하나만 쓰고 테이블 별로 권한을 주고 싶으면

schema를 생성해서 테이블별로 사용자 권한을 주면 될 듯.

A database contains one or more named schemas, which in turn contain tables. Schemas also contain other kinds of named objects, including data types, functions, and operators.

 

There are several reasons why one might want to use schemas:
 To allow many users to use one database without interfering with each other. 
 To organize database objects into logical groups to make them more manageable.
 Third-party applications can be put into separate schemas so they do not collide with the names of other objects.

 

database.schema.table

 

Thus, the following are equivalent:

CREATE TABLE products ( ... );
and:

CREATE TABLE public.products ( ... );

[링크 : https://www.postgresql.org/docs/9.1/ddl-schemas.html]

 

 

스키마는 테이블들의 named collection 이다.

A schema is a named collection of tables. A schema can also contain views, indexes, sequences, data types, operators, and functions.

[링크 : https://www.tutorialspoint.com/postgresql/postgresql_schema.htm]

[링크 : http://www.postgresqlforbeginners.com/2010/12/schema.html]

 

[링크 : https://ktdsoss.tistory.com/184]

[링크 : https://blog.naver.com/seuis398/70097173659]

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

pgadmin dashboard 살려내기  (0) 2019.06.13
postresql backup & recovery  (0) 2019.06.12
postgres db 속도 향상  (0) 2019.06.07
postgresql drop all tables  (0) 2019.06.05
postgresql import from csv  (0) 2019.06.04
Posted by 구차니
프로그램 사용/docker2019. 6. 12. 10:12

 

윽... 뱀은 있어도 c계열은 unofficial이네..

걍 소켓으로 HTTP로 주고 받는게 편하려나...

 

[링크 : https://docs.docker.com/develop/sdk/]

'프로그램 사용 > docker' 카테고리의 다른 글

docker / win10 home / hyper-V  (0) 2019.07.09
docker run -p hport:cport  (0) 2019.06.13
docker ps 옵션 차이  (0) 2019.06.11
docker 컨테이너 이미지 이름으로 검색하기  (0) 2019.06.10
docker create와 docker rm  (0) 2019.05.30
Posted by 구차니
프로그램 사용/docker2019. 6. 11. 15:47

ubuntu 18.04에서 docker-ce로 깐건데.. 이상하네

$ sudo docker help ps 

Usage:  docker ps [OPTIONS] 

List containers 

Options: 
  -a, --all             Show all containers (default shows just running) 
  -f, --filter filter   Filter output based on conditions provided 
      --format string   Pretty-print containers using a Go template 
  -n, --last int        Show n last created containers (includes all states) (default -1) 
  -l, --latest          Show the latest created container (includes all states) 
      --no-trunc        Don't truncate output 
  -q, --quiet           Only display numeric IDs 
  -s, --size            Display total file sizes 


요거야 원래 옵션이고 도는 놈들만(run) 보여주는거니 문제 안되는데

$ sudo docker ps 
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES 

 

읭.. -a과 --all이 같은거였나. -all이 아니었냐.. 아무튼 얘는 죽은것도 보여줌

$ sudo docker ps -a 
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                     PORTS               NAMES 
4fdb1194f2c6        httpd               "-d"                     6 minutes ago       Created                    80/tcp              blissful_sinoussi 
d913540567fc        httpd               "httpd-foreground"       6 minutes ago       Exited (0) 6 minutes ago                       admiring_colden 
8c8c15aee063        mysql               "docker-entrypoint.s…"   7 minutes ago       Exited (1) 7 minutes ago                       quirky_fermi 
54eb43ad0783        atmoz/sftp          "/entrypoint"            8 minutes ago       Exited (3) 7 minutes ago                       elegant_napier 
$ sudo docker ps --all 
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                     PORTS               NAMES 
4fdb1194f2c6        httpd               "-d"                     6 minutes ago       Created                    80/tcp              blissful_sinoussi 
d913540567fc        httpd               "httpd-foreground"       6 minutes ago       Exited (0) 6 minutes ago                       admiring_colden 
8c8c15aee063        mysql               "docker-entrypoint.s…"   7 minutes ago       Exited (1) 7 minutes ago                       quirky_fermi 
54eb43ad0783        atmoz/sftp          "/entrypoint"            8 minutes ago       Exited (3) 7 minutes ago                       elegant_napier 

 

얘는 일단 잘못된 옵션인데.. -a랑도 다르게 나오고 머지?

$ sudo docker ps -all 
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES 
4fdb1194f2c6        httpd               "-d"                6 minutes ago       Created             80/tcp              blissful_sinoussi 

 

'프로그램 사용 > docker' 카테고리의 다른 글

docker run -p hport:cport  (0) 2019.06.13
docker api  (0) 2019.06.12
docker 컨테이너 이미지 이름으로 검색하기  (0) 2019.06.10
docker create와 docker rm  (0) 2019.05.30
docker 자원 제한하기  (0) 2019.05.17
Posted by 구차니
프로그램 사용/docker2019. 6. 10. 14:50

여러개는 힘들거 같고, 하나의 컨테이너만 살린다면

그걸 상속받아 만든 녀석에 대해서는 검색이 가능할 듯

 

 

docker ps -a -q  --filter ancestor="image name"

[링크 : https://stackoverflow.com/questions/32073971/stopping-docker-containers-by-image-name-ubuntu]

'프로그램 사용 > docker' 카테고리의 다른 글

docker api  (0) 2019.06.12
docker ps 옵션 차이  (0) 2019.06.11
docker create와 docker rm  (0) 2019.05.30
docker 자원 제한하기  (0) 2019.05.17
docker exited  (0) 2019.05.17
Posted by 구차니