Postgres 8.4 对象操作增进

  • Add support for column-level privileges (Stephen Frost, KaiGai Kohei) 支持列 级授权。
  • Refactor multi-object DROP operations to reduce the need for CASCADE (Alex Hunsaker) 多对象删除操作对 CASCADE (级联——译者)的依赖降低。

    For example, if table B has a dependency on table A, the command DROP TABLE A, B no longer requires the CASCADE option.

    例如,表 B 依赖于表 A,DROP TABLE A, B 命令不再需要 CASCADE 选项。

  • Fix various problems with concurrent DROP commands by ensuring that locks are taken before we begin to drop dependencies of an object (Tom) 修正了几个并行 DROP 命令带来的问题,这些问题由于删除对象依赖之前确认获取的锁定而引发。
  • Improve reporting of dependencies during DROP commands (Tom) 改进了删除命令的 依懒性报告。
  • Add WITH [NO] DATA clause to CREATE TABLE AS, per the SQL standard (Peter, Tom) 基于 SQL 标准,为 CREATE TABLE AS 增加了 WITH [NO] DATA 子句。
  • Add support for user-defined I/O conversion casts (Heikki) 增加了用户定义 I/O 转换。
  • Allow CREATE AGGREGATE to use an internal transition datatype (Tom) 允许  CREATE AGGREGATE 使用内部数据类型转换。
  • Add LIKE clause to CREATE TYPE (Tom) CREATE TYPE 增加了 LIKE 子句。

    This simplifies creation of data types that use the same internal representation as an existing type.

    这样同类的内部类型描述可以作为一个既有的类型,简化了数据类型创建。

  • Allow specification of the type category and "preferred" status for user-defined base types (Tom) 允许详细说明用户定义基类的类型分类和“首选”状态。

    This allows more control over the coercion behavior of user-defined types.

    这样就可以进一步强制性的控制用户定义类型。

  • Allow CREATE OR REPLACE VIEW to add columns to the end of a view (Robert Haas) 允许 CREATE OR REPLACE VIEW 在视图末尾追加列。
ALTER
  • Add ALTER TYPE RENAME (Petr Jelinek) 增加 ALTER TYPE RENAME
  • Add ALTER SEQUENCE ... RESTART (with no parameter) to reset a sequence to its initial value (Zoltan Boszormenyi) 增加 ALTER SEQUENCE ... RESET 以重置序列的 初始值。
  • Modify the ALTER TABLE syntax to allow all reasonable combinations for tables, indexes, sequences, and views (Tom) 修改 ALTER TABLES 语法以允许所有 表、索引、序列和视图的合理组合。

    This change allows the following new syntaxes 此改变带来以下新语法:

    • ALTER SEQUENCE OWNER TO
    • ALTER VIEW ALTER COLUMN SET/DROP DEFAULT
    • ALTER VIEW OWNER TO
    • ALTER VIEW SET SCHEMA

    There is no actual new functionality here, but formerly you had to say ALTER TABLE to do these things, which was confusing.

    这样也没带来什么新功能,不过以前都是用 ALTER TABLE 来做这件事,很让人迷惑。

  • Add support for the syntax ALTER TABLE ... ALTER COLUMN ... SET DATA TYPE (Peter) 增加对 ALTER TABLE ... ALTER COLUMN ... SET DATA TYPE 语法的支持。

    This is SQL-standard syntax for functionality that was already supported.

    现在这些功能的 SQL 标准语法都已经得到支持了。

  • Make ALTER TABLE SET WITHOUT OIDS rewrite the table to physically remove OID values (Tom) ALTER TABLE SET WITHOUT OIDS 会重写表,在物理上删除 OID。

    Also, add ALTER TABLE SET WITH OIDS to rewrite the table to add OIDs.

    当然,也增加了 ALTER TABLE SET WITH OIDS 以重写表,添加 OID。

Database Manipulation 数据库操作
  • Improve reporting of CREATE/DROP/RENAME DATABASE failure when uncommitted prepared transactions are the cause (Tom) 当未提交预备事务时 CREATE/DROP/RENAME DATABASE 失败的报告得到的增进。
  • Make LC_COLLATE and LC_CTYPE into per-database settings (Radek Strnad, Heikki) LC_COLLATE 和 LC_CTYPE 进入了每数据库设置。

    This makes collation similar to encoding, which was always configurable per database.

    这样,此类配置就可以与一直作为每数据库单独配置的编码一致了。

  • Improve checks that the database encoding, collation (LC_COLLATE), and character classes (LC_CTYPE) match (Heikki, Tom) 增进数据库编码、排序规则 (LC_COLLATE) 和字符类型(LC_CTYPE)匹配检查。

    Note in particular that a new database's encoding and locale settings can be changed only when copying from template0. This prevents possibly copying data that doesn't match the settings.

    注意:只能在新建数据库,从 template0 复制的时候可以改变数据库编码。这样可能出现 复制的数据与设置不匹配。

  • Add ALTER DATABASE SET TABLESPACE to move a database to a new tablespace (Guillaume Lelarge, Bernd Helmle) 增加 ALTER DATABASE SET TABLESPACE ,以此将 数据库转移到新的表空间。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值