AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-37213

Lee's questions

Martin Hope
Lee
Asked: 2018-03-01 15:42:11 +0800 CST

Redshift:可以在 information_schema.columns 中找到表列,但在 pg_catalog.pg_table_def 中找不到

  • 3

我在 Redshift 中创建了一个表。当我尝试搜索表定义时,我information_schema.columns通过运行以下查询来获取结果:

select * from information_schema.columns 
where table_name = 'table' and table_schema='schema'

但是,当我对 运行查询时pg_catalog.pg_table_def,我没有得到任何结果。

select * from pg_catalog.pg_table_def 
where tablename = 'table' and  schemaname = 'schema'

谁能帮我理解为什么会这样?该表由我正在使用的帐户创建并拥有。

table redshift
  • 1 个回答
  • 9206 Views
Martin Hope
Lee
Asked: 2018-01-15 20:20:37 +0800 CST

如何在 Amazon RDS 上查询 INFORMATION_SCHEMA.COLUMNS?

  • 2

我收到了另一个团队的列名列表。为了确保所有字段列名在特定模式中都有效,我将它们放入一个临时表中。我现在想看看它们是否存在。当我尝试加入时information_schema.columns,我收到以下错误:

ERROR: 0A000: Specified types or functions (one per INFO message) not supported on Redshift tables.
Column "c.column_name" has unsupported type     "information_schema.sql_identifier".
Column "a.*" has unsupported type "pg_attribute".
Column "t.*" has unsupported type "pg_type".
Function "format_type(oid,integer)" not supported.
Function "format_type(oid,integer)" not supported.
Function "has_table_privilege(oid,text)" not supported.
Function "has_table_privilege(oid,text)" not supported.
Function "has_table_privilege(oid,text)" not supported.
Function "has_table_privilege(oid,text)" not supported.

我试图转换column_name成不同的类型,但没有运气。谁能告诉我出了什么问题以及我如何实现这个目标?

errors information-schema
  • 1 个回答
  • 7219 Views
Martin Hope
Lee
Asked: 2016-05-24 02:24:30 +0800 CST

MongoDB 未使用 Windows 服务器中的所有内存

  • 2

我有一个在 Windows 中运行的独立 MongoDB 实例。它最近运行缓慢,我的故障排除发现了以下症状。

  1. 这种缓慢通常发生在对大量集合进行全文搜索查询之后。我猜这是因为它将集合中的许多页面从磁盘交换到内存中,因此来自其他集合的数据被挤出内存。
  2. 服务器内存使用率上限约为 55%。服务器 (Win2012) 有 32GB 内存,但 MongoDB 不会尝试使用超过 16GB 的内存。

我已经看到一些关于限制 MongoDB 内存使用的问答,但没有看到关于如何鼓励 MongoDB 更加贪婪的问答。

任何人都会有类似问题的经验吗?

  • MongoDB:3.2.0
  • 存储引擎:wiredTiger
  • 操作系统:Win2012
  • 内存:32GB

谢谢

mongodb windows-server
  • 2 个回答
  • 899 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    连接到 PostgreSQL 服务器:致命:主机没有 pg_hba.conf 条目

    • 12 个回答
  • Marko Smith

    如何让sqlplus的输出出现在一行中?

    • 3 个回答
  • Marko Smith

    选择具有最大日期或最晚日期的日期

    • 3 个回答
  • Marko Smith

    如何列出 PostgreSQL 中的所有模式?

    • 4 个回答
  • Marko Smith

    列出指定表的所有列

    • 5 个回答
  • Marko Smith

    如何在不修改我自己的 tnsnames.ora 的情况下使用 sqlplus 连接到位于另一台主机上的 Oracle 数据库

    • 4 个回答
  • Marko Smith

    你如何mysqldump特定的表?

    • 4 个回答
  • Marko Smith

    使用 psql 列出数据库权限

    • 10 个回答
  • Marko Smith

    如何从 PostgreSQL 中的选择查询中将值插入表中?

    • 4 个回答
  • Marko Smith

    如何使用 psql 列出所有数据库和表?

    • 7 个回答
  • Martin Hope
    Jin 连接到 PostgreSQL 服务器:致命:主机没有 pg_hba.conf 条目 2014-12-02 02:54:58 +0800 CST
  • Martin Hope
    Stéphane 如何列出 PostgreSQL 中的所有模式? 2013-04-16 11:19:16 +0800 CST
  • Martin Hope
    Mike Walsh 为什么事务日志不断增长或空间不足? 2012-12-05 18:11:22 +0800 CST
  • Martin Hope
    Stephane Rolland 列出指定表的所有列 2012-08-14 04:44:44 +0800 CST
  • Martin Hope
    haxney MySQL 能否合理地对数十亿行执行查询? 2012-07-03 11:36:13 +0800 CST
  • Martin Hope
    qazwsx 如何监控大型 .sql 文件的导入进度? 2012-05-03 08:54:41 +0800 CST
  • Martin Hope
    markdorison 你如何mysqldump特定的表? 2011-12-17 12:39:37 +0800 CST
  • Martin Hope
    Jonas 如何使用 psql 对 SQL 查询进行计时? 2011-06-04 02:22:54 +0800 CST
  • Martin Hope
    Jonas 如何从 PostgreSQL 中的选择查询中将值插入表中? 2011-05-28 00:33:05 +0800 CST
  • Martin Hope
    Jonas 如何使用 psql 列出所有数据库和表? 2011-02-18 00:45:49 +0800 CST

热门标签

sql-server mysql postgresql sql-server-2014 sql-server-2016 oracle sql-server-2008 database-design query-performance sql-server-2017

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve