提交 bd49396b authored 作者: Thomas Mueller's avatar Thomas Mueller

PostgreSQL compatibility.

上级 87810f80
......@@ -18,8 +18,10 @@ Change Log
<h1>Change Log</h1>
<h2>Next Version (unreleased)</h2>
<ul><li>A tool to migrate an old database from the non-page store format to the
newest version has been added in src/tools/org/h2/dev/util/Migrate.java. This file is not
<ul><li>PostgreSQL compatibility: when using the following exception was thrown:
Column "T.TYPTYPMOD" not found. Fixed. This is only when using psqlodbc_08_04*.
</li><li>A tool to migrate an old database from the non-page store format to the
newest version has been added in src/tools/org/h2/dev/util/Migrate.java. This file is not
included in the jar file currently.
</li><li>When using temporary table, the database didn't shrink sometimes when closing.
</li><li>Large transactions could run out of heap space. Fixed.
......
......@@ -35,7 +35,8 @@ create table pg_catalog.pg_type(
typnamespace int,
typlen int,
typtype varchar,
typbasetype int);
typbasetype int,
typtypmod int);
insert into pg_catalog.pg_type
select
......@@ -44,7 +45,8 @@ select
(select oid from pg_catalog.pg_namespace where nspname = 'pg_catalog') typnamespace,
-1 typlen,
'c' typtype,
0 typbasetype
0 typbasetype,
-1 typtypmod
from information_schema.type_info
where pos = 0
and pg_convertType(data_type) <> 705; -- not unknown
......@@ -55,7 +57,8 @@ merge into pg_catalog.pg_type values(
(select oid from pg_catalog.pg_namespace where nspname = 'pg_catalog'),
-1,
'c',
0
0,
-1
);
merge into pg_catalog.pg_type values(
0,
......@@ -63,7 +66,8 @@ merge into pg_catalog.pg_type values(
(select oid from pg_catalog.pg_namespace where nspname = 'pg_catalog'),
-1,
'c',
0
0,
-1
);
create view pg_catalog.pg_class -- (oid, relname, relnamespace, relkind, relam, reltuples, relpages, relhasrules, relhasoids)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论