【24h】

Meta-SQL: Towards Practical Meta-querying

机译:Meta-SQL:走向实用的元查询

获取原文
获取原文并翻译 | 示例

摘要

Enterprise databases often contain not only ordinary data, but also queries. Examples are view definitions in the system catalog; usage logs or workloads; and stored procedures as in SQL/PSM or Postgres. Unfortunately, these queries are typically stored as long strings, which makes it hard to use standard SQL to express meta-queries: queries about queries. Meta-querying is an important activity in situations such as advanced database administration, database usage monitoring, and workload analysis. Here are some examples of meta-queries to a usage log. (ⅰ) "Which queries in the log do the most joins?" (ⅱ) "Which queries in the log return an empty answer on the current instance of the database?" (ⅲ) View expansion: "Replace, in each query in the log, each view name by its definition as given in the system catalog." (ⅳ) Given a list of new view definitions (under the old names): "Which queries in the log give a different answer on the current instance under the new view definitions?" We present Meta-SQL, a system that allows the expression of meta-queries directly in SQL. Our presentation is extremely condensed; a full paper on the language and our prototype implementation is available.
机译:企业数据库通常不仅包含普通数据,还包含查询。示例是系统目录中的视图定义。使用日志或工作负载;和存储过程,如SQL / PSM或Postgres。不幸的是,这些查询通常以长字符串存储,这使得很难使用标准SQL来表达元查询:关于查询的查询。在高级数据库管理,数据库使用情况监视和工作负载分析等情况下,元查询是一项重要的活动。以下是使用情况日志的一些元查询示例。 (ⅰ)“日志中哪个查询连接最多?” (ⅱ)“日志中的哪个查询在数据库的当前实例上返回空答案?” (ⅲ)视图扩展:“在日志中的每个查询中,根据系统目录中给出的定义替换每个视图名称。” (ⅳ)给定新视图定义的列表(使用旧名称):“日志中的哪些查询在新视图定义下对当前实例给出不同的答案?”我们介绍了Meta-SQL,这是一个允许直接在SQL中表达元查询的系统。我们的演讲简明扼要。有关该语言的完整论文和我们的原型实现已可用。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号