在阅读文档后,我发现分析是收集有关给定表的信息,规划器稍后将使用这些信息来规划查询的执行。在Oracle中,有一个选项可以分析索引。对于 PostgreSQL,ANALYZE 命令返回索引警告。我认为索引对于 PostgreSQL 应该同样重要,所以为什么 PostgreSQL 不支持索引。我可能错过了一些东西,有人可以指出正确的文档,以便我可以对此有更多的了解吗?
postgres=# Create table test(empno integer);
CREATE TABLE
postgres=# create index idx_test1 on test(empno );
CREATE INDEX
postgres=# \di idx_test1
List of relations
Schema | Name | Type | Owner | Table
--------+-----------+-------+---------+-------
public | idx_test1 | index | Xyz | test
(1 row)
postgres=# analyze public.idx_test1
postgres-# ;
2020-06-29 16:37:30.665 IST [118434] WARNING: skipping "idx_test1" --- cannot analyze non-tables or special system tables
WARNING: skipping "idx_test1" --- cannot analyze non-tables or special system …
Run Code Online (Sandbox Code Playgroud) 我只想知道 Oracle XE 或任何免费可用的 Oracle 版本是否与任何 Ubuntu 版本兼容。
oracle ubuntu oracle-xe failed-installation database-installation
我想存储 Linux 上 setlocale() 函数返回的区域设置名称。与Windows平台一样,最大区域设置大小定义为LOCALE_NAME_MAX_LENGTH,是否有为Linux定义类似的宏?另外,我需要在上述两个平台上使用相同的缓冲区。
char buffer[];
buffer = setlocale(LC_ALL, NULL);
Run Code Online (Sandbox Code Playgroud)