成人免费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-15 10:21:09

man中文man

2011-08-24 16:48:36

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技術棧公眾號

主站蜘蛛池模板: 在线免费观看日本视频 | 欧美区日韩区 | www国产成人 | 日日干综合 | 亚洲精品日韩一区二区电影 | 国产精品视频免费观看 | 综合久久亚洲 | 北条麻妃一区二区三区在线视频 | 精品av天堂毛片久久久借种 | 91亚洲国产成人精品一区二三 | 毛片免费视频 | 国产精品久久久久999 | 一级毛毛片 | 日韩福利| 一区二区三区精品视频 | 午夜国产羞羞视频免费网站 | 欧美中文字幕一区二区三区亚洲 | 亚洲精品视频在线播放 | 中文字幕成人在线 | 在线观看视频91 | 一区二区三区视频在线观看 | 午夜精品视频在线观看 | 精品国产三级 | 欧美精品在线一区二区三区 | 91私密视频| 国产伦精品一区二区三区高清 | 精品一区二区三区在线观看国产 | 中文字幕亚洲精品 | 国产91久久精品一区二区 | 中文字幕免费视频 | 日韩av免费在线观看 | 久久国内 | 精品二 | 欧美久久久网站 | 免费黄篇 | 成人精品免费视频 | 久久视频免费观看 | 日韩一级免费看 | 激情一区二区三区 | 午夜精品久久久 | 免费看国产片在线观看 |