成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

alter_database 中文man頁面

系統
ALTER DATABASE 用于改變一個數據庫的屬性。

NAME

ALTER DATABASE - 修改一個數據庫

SYNOPSIS

ALTER DATABASE name SET parameter { TO | = } { value | DEFAULT }
ALTER DATABASE name RESET parameter

ALTER DATABASE name RENAME TO newname

DESCRIPTION 描述

ALTER DATABASE 用于改變一個數據庫的屬性。


 頭兩種形式為 PostgreSQL 數據庫修改缺省的會話運行時配置變量。 隨后在該數據庫上啟動一個新的會話的時候, 在啟動會話之前先有效地運行 SET variable TO value。 數據庫相關的缺省值覆蓋任何在 postgresql.conf 里出現或者從 postmaster 命令行接收到的設置。 只有數據庫所有者或者超級用戶可以為一個數據庫修改會話缺省。


 第三種形式修改該數據庫的名稱。只有數據庫所有者可以重命名一個數據庫,并且只有在他有 CREATEDB 權限的時候可以。 當前的數據庫不能被重命名。(如果你需要這么做,那么連接另外一個數據庫。)  

PARAMETERS 參數

name

 需要修改會話缺省的數據庫的名字。
parameter
value

 把指定的數據庫配置變量的會話缺省值設置為給出的數值。 如果 value 使用了 DEFAULT 或者是等效的 RESET, 那么與數據庫相關的變量設置將被刪除并且在新的會話中將繼承缺省設置。 用 RESET ALL 清除所有設置。


 參閱 SET [set(7)] 和 Section 16.4 ``Run-time Configuration'' 獲取有關允許的變量名和數值的 更多信息。

newname

 數據庫的新名字。

NOTES 注意


 使用 ALTER USER [alter_user(7)], 我們也可以把一個會話缺省綁定到一個特定用戶,而不是某個數據庫上。 如果存在沖突,那么用戶聲明的設置覆蓋數據庫相關的設置。  

EXAMPLES 例子


 要關閉在數據庫 test 上缺省的索引使用∶

ALTER DATABASE test SET enable_indexscan TO off;

COMPATIBILITY 兼容性

ALTER DATABASE 語句是一個 PostgreSQL 擴展。  

SEE ALSO 參見

ALTER USER [alter_user(7)], CREATE DATABASE [create_database(l)], DROP DATABASE [drop_database(l)], SET [set(l)]

#p#

NAME

ALTER DATABASE - change a database

SYNOPSIS

ALTER DATABASE name SET parameter { TO | = } { value | DEFAULT }
ALTER DATABASE name RESET parameter

ALTER DATABASE name RENAME TO newname

DESCRIPTION

ALTER DATABASE is used to change the attributes of a database.

The first two forms change the session default of a run-time configuration variable for a PostgreSQL database. Whenever a new session is subsequently started in that database, the specified value becomes the session default value. The database-specific default overrides whatever setting is present in postgresql.conf or has been received from the postmaster command line. Only the database owner or a superuser can change the session defaults for a database.

The third form changes the name of the database. Only the database owner can rename a database, and only if he has the CREATEDB privilege. The current database cannot be renamed. (Connect to a different database if you need to do that.)  

PARAMETERS

name
The name of the database whose session defaults are to be altered.
parameter
value
Set the session default for this database of the specified configuration parameter to the given value. If value is DEFAULT or, equivalently, RESET is used, the database-specific variable setting is removed and the system-wide default setting will be inherited in new sessions. Use RESET ALL to clear all settings.

See SET [set(7)] and the section called ``Run-time Configuration'' in the documentation for more information about allowed parameter names and values.

newname
The new name of the database.

NOTES

Using ALTER USER [alter_user(7)], it is also possible to tie a session default to a specific user rather than a database. User-specific settings override database-specific ones if there is a conflict.  

EXAMPLES

To disable index scans by default in the database test:

ALTER DATABASE test SET enable_indexscan TO off;

COMPATIBILITY

The ALTER DATABASE statement is a PostgreSQL extension.  

SEE ALSO

ALTER USER [alter_user(7)], CREATE DATABASE [create_database(l)], DROP DATABASE [drop_database(l)], SET [set(l)]

責任編輯:韓亞珊 來源: CMPP.net
相關推薦

2011-08-24 09:02:10

ALTER AGGRE中文man

2011-08-24 14:16:18

DROP DATABA中文man

2011-08-24 10:59:19

CREATE DATA中文man

2011-08-24 09:14:47

alter_conve中文man

2011-08-24 09:42:15

alter_seque中文man

2011-08-24 09:51:53

alter_user中文man

2011-08-24 09:22:30

alter_domai中文man

2011-08-24 09:29:18

alter_group中文man

2011-08-24 09:32:13

alter_langu中文man

2011-08-24 09:39:10

alter_schem中文man

2011-08-24 09:45:14

alter_table中文man

2011-08-24 09:48:46

alter_trigg中文man

2011-08-24 09:26:14

alter_funct中文man

2011-08-24 09:36:00

alter_opera中文man

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-11 15:03:21

ACCESS中文man

2011-08-11 15:28:43

ali中文man
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 久久一二| 日本三级网站在线 | 国产精品久久久久久久久久妇女 | 欧美一区在线视频 | 欧美成人一区二区 | 国产精品99视频 | 欧美日韩不卡合集视频 | 日韩欧美手机在线 | 九一视频在线观看 | 成人在线视频一区 | 日韩精品一区二区三区中文字幕 | 国产一区电影 | av黄色片在线观看 | 亚洲免费视频网站 | 成人精品国产免费网站 | 黄色网络在线观看 | 欧美午夜一区二区三区免费大片 | 不卡一区二区三区四区 | 日韩不卡一区二区 | 国产精品亚洲综合 | 亚洲国产精品一区二区第一页 | 亚洲精品乱码久久久久久蜜桃91 | 一级黄色录像片子 | 亚洲精品1区 | 国产精品国产成人国产三级 | 干干干日日日 | 综合色婷婷 | 免费观看一级特黄欧美大片 | 九九热免费视频在线观看 | 在线观看h视频 | 又黄又爽的网站 | 精品欧美一区二区精品久久 | 操亚洲 | 国产一区二区三区在线免费 | 成人免费在线视频 | 337p日韩| 精品久久中文字幕 | 国产一区中文 | 亚洲国产免费 | 久久久精品一区二区三区 | 欧美激情亚洲天堂 |