ALTER LARGE OBJECT

更改大型对象所有权的SQL命令

ALTER LARGE OBJECT 是一个DDL命令,用于更改大型对象的所有权。

ALTER LARGE OBJECT 添加于PostgreSQL 9.0

更改历史

示例

使用ALTER LARGE OBJECT更改大型对象的所有权

postgres=# \lo_import /tmp/random-meme.gif 'popular animated meme'
lo_import 16459

postgres=# \dl
         Large objects
  ID   |  Owner   |     Description
-------+----------+----------------------
 16459 | postgres | popular animated meme
(1 row)

postgres=# ALTER LARGE OBJECT 16459 OWNER TO lo_usr;
ALTER LARGE OBJECT

postgres=# \dl
        Large objects
  ID   | Owner  |     Description
-------+--------+----------------------
 16459 | lo_usr | popular animated meme
(1 row) 

分类

DDL大型对象SQL命令

参见

pg_largeobject_metadata

反馈

提交任何关于"ALTER LARGE OBJECT" 的评论、建议或更正 此处