【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查询对使用日志的一些示例。 (Ⅰ)“日志中的查询最多加入?” (Ⅱ)“日志中的查询返回数据库当前实例的空答案?” (Ⅲ)查看扩展:“在日志中的每个查询中替换,每个视图名称通过其定义在系统目录中给出。” (ⅳ)给定新视图定义列表(旧名称下):“日志中的查询在新视图定义下在当前实例上给出不同的答案?”我们呈现Meta-SQL,一个系统,允许直接在SQL中表达META查询。我们的演示文稿非常浓缩;有一个关于语言和原型实现的完整纸。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号