Notice
Recent Posts
Recent Comments
Link
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- outofmemoryerror ๋ฐฉ์ง
- js๋ฌ๋ ฅ
- ๋ฌ๋ ฅ๊ธฐ๋ฅ๊ฐ๋ฐ
- js ์ ์์๋ช
- poi monitorjbl
- xcode swift memo
- spring annotation
- ios app ๊ฐ๋ฐ
- fullcalendar js
- opcpackage
- xssreader
- Swift
- swift ๋ฉ๋ชจ์ฅ ๋ง๋ค๊ธฐ
- Xcode
- monitorjbl
- MSsql
- PostgreSQL
- ์ ์์๋ช ๊ธฐ๋ฅ๊ตฌํ
- xcode12.5.1
- xssfworkbook
- swift ๊ณ์ฐ๊ธฐ
- monitorjbl ์์
- jxls ์์
- ์ ์์๋ช ๊ฐ๋ฐ
- mysql
- xlsx-streamer
- Oracle
- poi ๋์ฉ๋
- ๋์ฉ๋์์ ์ ๋ก๋
- jxls
Archives
- Today
- Total
web developer๐ฉ๐ป๐ป
[PostgreSQL]Error updating database. Cause: org.postgresql.util.PSQLException: ์ค๋ฅ: ๋ฆด๋ ์ด์ (relation) ์ ๊ทผ ๊ถํ ์์ ๋ณธ๋ฌธ
DB
[PostgreSQL]Error updating database. Cause: org.postgresql.util.PSQLException: ์ค๋ฅ: ๋ฆด๋ ์ด์ (relation) ์ ๊ทผ ๊ถํ ์์
natrue 2021. 10. 8. 11:34728x90
์์ธ : ํด๋น user์ ์ ๊ทผ ๊ถํ์ด ์์ด์.
org.springframework.jdbc.BadSqlGrammarException:
### Error updating database. Cause: org.postgresql.util.PSQLException: ์ค๋ฅ: ํ
์ด๋ธ๋ช
๋ฆด๋ ์ด์
(relation) ์ ๊ทผ ๊ถํ ์์
### The error may involve egovframework.com.sym.log.service.impl.EgovLogManageMapper.logInsertSysLog-Inline
### The error occurred while setting parameters
USER ์กฐํ
select * from PG_SHADOW;
๊ถํ ์ข ๋ฅ
SELECT | ํ ์ด๋ธ์ด๋ ๋ทฐ์ ๋ฐ์ดํฐ๋ฅผ ์กฐํ |
INSERT | ํ ์ด๋ธ์ ์๋ก์ด ๋ฐ์ดํฐ๋ฅผ ์ถ๊ฐ |
UPDATE | ํ ์ด๋ธ์ ๋ฐ์ดํฐ๋ฅผ ์์ |
DELETE | ํ ์ด๋ธ์์ ๋ฐ์ดํฐ๋ฅผ ์ญ์ |
TRUNCATE | ํ ์ด๋ธ์ ๋ฐ์ดํฐ๋ฅผ ๋น์ด๋ค. |
REFERENCES | ํ ์ด๋ธ๊ณผ ์ปฌ๋ผ์ ์ธ๋ ํค ์ ์ฝ ์กฐ๊ฑด ์์ฑ |
TRIGGER | ํ ์ด๋ธ์ ํธ๋ฆฌ๊ฑฐ ์์ฑ |
CREATE | ๋์์ด ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๊ฒฝ์ฐ ์คํค๋ง๋ฅผ ๋ง๋ค ์ ์๋ค. ๋์ ์คํค๋ง์ ๊ฒฝ์ฐ, ํ ์ด๋ธ ๋ฑ์ ๊ฐ์ฒด ์์ฑ |
CONNECT | ์ง์ ๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ์ฐ๊ฒฐ |
TEMPORARY | ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ์์ ํ ์ด๋ธ์ ์์ฑ |
EXECUTE | ํจ์ ๋๋ ํ๋ก ์์ ์ฐ์ฐ์์ ์ฌ์ฉ์ ํ์ฉ |
USAGE | ๋์์ด ์คํค๋ง์ ๊ฒฝ์ฐ๋ ๊ฐ์ฒด์ ๋ํ ์ก์ธ์ค๋ฅผ ํ์ฉํ๋ค. ๋์์ด ์คํค๊ฐ ์๋๋ฉด, ๋์์ ๋ฐ๋ผ ๊ถํ์ด ๋ถ์ฌ |
ALL PRIVILEGES | ์ฌ์ฉํ ์ ์๋ ๊ถํ์ ์ ๋ฆฌํด ํ์ฉ.(=SELECT, INSERT, UPDATE, DELETE TRUNCATE, REFERENCES, TRIGGER) |
- ํด๊ฒฐ๋ฐฉ๋ฒ -
ํ ์ด๋ธ์ ๋ชจ๋ ๊ถํ ์ถ๊ฐ
GRANT ALL PRIVILEGES ON table_name To role_name;
properties Owner ๋ณ๊ฒฝ
์ฐธ๊ณ : https://www.postgresql.org/docs/9.0/sql-grant.html
GRANT
GRANT Name GRANT -- define access privileges Synopsis GRANT { { SELECT | INSERT | UPDATE | DELETE | TRUNCATE | REFERENCES | TRIGGER } [,...] | ALL [ PRIVILEGES ] } ON { [ TABLE ] table_name [, ...] | ALL TABLES IN SCHEMA schema_name [, ...] } TO { [ GROU
www.postgresql.org