IT/DataBase

[PostGreSQL] ํ…Œ์ด๋ธ”/ํ…Œ์ด๋ธ” ๋ชฉ๋ก ์กฐํšŒ

์•Œ ์ˆ˜ ์—†๋Š” ์‚ฌ์šฉ์ž 2022. 11. 28.

๋ชฉ์ฐจ

    ๋‚˜์ค‘์— ๋‚ด๊ฐ€ ๋ณด๊ธฐ ์œ„ํ•ด ๊ธฐ๋กํ•จ

    PostGreSQL ํ…Œ์ด๋ธ” ์กฐํšŒ๐Ÿ˜ƒ

    ์˜ค๋ผํด์˜ all_tables, user_tables ๋“ฑ
    mysql & mariadb์˜ information_schema์™€ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ postgreSQL๋„ ํ…Œ์ด๋ธ” ๋ชฉ๋ก์„ ์กฐํšŒํ•  ์ˆ˜ ์žˆ์Œ

    ์•„๋ž˜์ฒ˜๋Ÿผ pg_tables๋ฅผ ์ด์šฉํ•˜๋ฉด ๋œ๋‹ค.

    select * from pg_tables
    ;

    ๋Œ“๊ธ€