简体   繁体   English

Postgres数据库搜索所有表

[英]Postgres database search all tables

Good Afternoon everyone, I've got a knotty problem, I have a mature Postgres database that has over 500 tables, and is too large to dump. 大家下午好,我遇到了一个棘手的问题,我有一个成熟的Postgres数据库,该数据库有500多个表,并且太大而无法转储。 When a product is added to the database a new line is created in many tables and I'd like to check what information is added in order to replicate the functionality in a new piece of software. 将产品添加到数据库后,会在许多表中创建新行,我想检查添加了哪些信息,以便在新软件中复制功能。 The reason is the existing software interface is very old and unfriendly so we are replacing it. 原因是现有的软件界面非常旧且不友好,因此我们将其替换。 I can't very easily use the approach suggested here: Search entire postgres database? 我不太容易使用这里建议的方法: 搜索整个postgres数据库? . Can anyone suggest another solution? 谁能建议其他解决方案?

I should clarify i can't modify the database at all, until we have reliably replaced the existing interface and that won't be for months yet. 我要澄清的是,在我们可靠地替换了现有接口之前,根本无法修改数据库,而且这种情况将持续数月之久。

Thanks 谢谢

You can set log_statement = 'all' for the short time when you run your experiment. 您可以在运行实验时将log_statement = 'all'为很短的时间。 Make sure that your log_line_prefix contains %c . 确保您的log_line_prefix包含%c Then you can track all SQL statements that belong to one database session. 然后,您可以跟踪属于一个数据库会话的所有SQL语句。

搜索所有<img …>在作为子级的数据库表中<container class="“this”" … and add a class< div><div id="text_translate"><p> 我的网站上有很多页面。 在众多页面中,我有很多 html 表,其名称为:class="scrollable",我想将 class="nolazy" 添加到所有 &lt;table class="scrollable" 包含的所有图像中。 .&gt; 遍及我的网站。 一页一页地手工这样做会很痛苦而且很长时间。 我什至不知道如何轻松地列出其中包含图像的页面。</p><p> 我在 wordpress 中使用自定义模板制作了我的网站</p><ul><li>我可以用插件来做到这一点(会是最好的)吗?</li><li> 我可以使用 sql 查询来做到这一点吗?</li></ul><p> 谢谢你的帮助,</p><p> 弗朗索瓦</p></div></container> - Search all <img …> in database tables that are children of <container class=“this” … and add a class

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 查询以查找并连接 postgres 数据库中的所有表 - Query to find and join all tables in a postgres database 在数据库的所有列和所有表中搜索一个值 - Search for a value in all column and all tables of a database 搜索数据库中的所有表并返回值? - Search all tables in database and return a value? 在数据库的所有表中搜索字符串和数字 - Search for a String and a Number at all tables in a Database 如何在数据库的所有表中搜索列名 - How to search a column name within all tables of a database SQL Server-在所有数据库表中搜索列 - SQL Server - Search for a column across all database tables mySQL 查询在数据库中的所有表中搜索字符串? - mySQL query to search all tables within a database for a string? 在所有数据库 - 表 - 列文本中搜索字符串 - Search through all Database - Tables - Column Text for a string 搜索所有<img …>在作为子级的数据库表中<container class="“this”" … and add a class< div><div id="text_translate"><p> 我的网站上有很多页面。 在众多页面中,我有很多 html 表,其名称为:class="scrollable",我想将 class="nolazy" 添加到所有 &lt;table class="scrollable" 包含的所有图像中。 .&gt; 遍及我的网站。 一页一页地手工这样做会很痛苦而且很长时间。 我什至不知道如何轻松地列出其中包含图像的页面。</p><p> 我在 wordpress 中使用自定义模板制作了我的网站</p><ul><li>我可以用插件来做到这一点(会是最好的)吗?</li><li> 我可以使用 sql 查询来做到这一点吗?</li></ul><p> 谢谢你的帮助,</p><p> 弗朗索瓦</p></div></container> - Search all <img …> in database tables that are children of <container class=“this” … and add a class 在postgres中显示所有不是空表 - show all not empty tables in postgres
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM