标签

 postgresql 

相关的文章:

了解PostgreSQL的安全漏洞、性能优化和扩展功能,提高数据库的安全性和性能。

How to Build Applications With Asyncpg and PostgreSQL

原文英文,约3000词,阅读约需11分钟。发表于:

Learn how to create a financial data application using asyncpg and PostgreSQL.

介绍使用asyncpg和PostgreSQL构建高效应用程序,集成TimescaleDB管理时间序列数据,提供教程和优化技巧。

How to Build Applications With Asyncpg and PostgreSQL
相关推荐 去reddit讨论

PostgreSQL 安全漏洞 CVE-2024-4317

原文约700字,阅读约需2分钟。发表于:

之前没有特别注意这个漏洞,这里稍微记一笔。 PostgreSQL 包含一系列系统视图,这些系统视图可以用来查询系统表。 由于 pg_stats_ext 和 pg_stats_ext_exprs 这两个视图在 PostgreSQL 14-16 的 16.3、15.7 和 14.12 之前的版本中缺少了必要的访问控制, 因此未经授权的用户将可以通过这些视图访问其他用户通过 CREATE...

PostgreSQL 14-16 versions have a vulnerability where unauthorized users can access statistics data created by other users. This issue has been fixed in versions 16.3, 15.7, and 14.12. Administrators of existing databases must rebuild system views to tighten access permissions. The fix script is available in the source code. This vulnerability is significant if fine-grained access control is implemented. Administrators should be concerned about more serious issues if the application does not implement proper role-based user access to the database.

相关推荐 去reddit讨论

How I use PostgreSQL's timestamptz fields in my Mojo apps

原文英文,约100词,阅读约需1分钟。发表于:

I created a function in Perl called pg_dt, that will convert PostgreSQL’s datetime values into Perl’s DateTime values and vice versa. This is useful both when you want to store DateTime values...

我在Perl中创建了一个名为pg_dt的函数,它可以将PostgreSQL的日期时间值转换为Perl的DateTime值,反之亦然。这在你想要将DateTime值存储到数据库中,或者将数据库中的pg日期/时间戳值转换为Perl可以使用的DateTime对象值时非常有用。

相关推荐 去reddit讨论

Hans-Juergen Schoenig: Speeding up index creation in PostgreSQL

原文英文,约2300词,阅读约需9分钟。发表于:

Indexes are, by far, the most feature related to performance provided by every general purpose relational database. Without indexes, there are no such things as efficient search operations, no...

索引是关系数据库的关键功能,提供高效的搜索操作和数据约束。创建索引需要排序和转换数据,对大数据量来说是昂贵的。文章探讨了如何快速创建索引,包括调整配置参数和选择合适的数据类型。

Hans-Juergen Schoenig: Speeding up index creation in PostgreSQL
相关推荐 去reddit讨论

Andrew Atkinson: Wait a minute! — PostgreSQL extension pg_wait_sampling

原文英文,约600词,阅读约需3分钟。发表于:

PostgreSQL uses a complex system of locks to balance concurrent operations and data consistency, across many transactions. Those intricacies are beyond the scope of this post. Here we want to...

PostgreSQL使用复杂的锁系统来平衡并发操作和数据一致性。可以使用pg_locks和pg_stat_activity等系统视图来获取实时可见性。使用pg_wait_sampling扩展可以解决历史分析和多个样本的需求,提供了pg_wait_sampling_profile和pg_wait_sampling_history两个视图来获取查询的等待事件和历史信息。

相关推荐 去reddit讨论

SpringBoot中 SSL 连接 PostgreSQL 数据库

原文约6700字,阅读约需16分钟。发表于:

在本文中,我们通过 SSL 配置并安全地与 PostgreSQL 服务器建立了数据库连接。在数据库管理领域,确保应用程序和数据库之间的安全通信非常重要。在本教程中,我们将介绍如何从 JDBC 和 Spring Boot 通过 SSL 连接到 PostgreSQL。PostgreSQL 配置我们需要更新 PostgreSQL 服务器以允许通过 SSL...

本文介绍了如何在Spring Boot中使用SSL连接PostgreSQL数据库。首先需要更新PostgreSQL服务器的配置文件,然后在Maven中添加PostgreSQL JDBC驱动程序依赖项。接下来,通过定义属性来连接到PostgreSQL服务器,并使用checkConnectionSsl方法进行连接测试。文章还介绍了如何使用密钥库和信任库建立连接,并展示了如何在Spring Boot应用程序中使用SSL连接。

相关推荐 去reddit讨论

semab tariq: A Follow up on Key PostgreSQL Configuration Parameters for Enhanced Performance – Part 2

原文英文,约600词,阅读约需2分钟。发表于:

In a previous blog post, we configured an EC2 instance and installed PostgreSQL on it. After the initial setup, we ran pgbench to measure the initial TPS (transactions per second). Then, we tuned...

在之前的博客文章中,我们通过调整PostgreSQL的参数来优化性能。我们首先排除了默认值和对性能影响较小的参数。然后,我们更新了max_wal_size参数。通过这些调整,我们实现了1.2倍的性能提升。进一步测试后,我们发现即使使用更少的参数,仍然能够获得相同的性能提升。通过关注关键的内存和WAL设置,我们证明了小的、有针对性的改变也可以产生重大影响。希望本博客为PostgreSQL调优提供了有价值的见解。

semab tariq: A Follow up on Key PostgreSQL Configuration Parameters for Enhanced Performance – Part 2
相关推荐 去reddit讨论

Andrew Atkinson: You make a good point! — PostgreSQL Savepoints

原文英文,约800词,阅读约需3分钟。发表于:

This post will look at the basics of PostgreSQL Savepoints within a Transaction. A transaction is used to form a non-separable unit of work to commit or not, as a unit. Transactions are opened...

本文介绍了PostgreSQL中事务中保存点的基础知识,包括创建、回滚和释放保存点的方法。保存点允许增量持久性,并且可以将数据恢复到特定状态。保存点的创建和释放不会改变数据的状态,但重复创建和释放会导致错误。保存点的使用只在事务内部有效。

相关推荐 去reddit讨论

Stefanie Janine: sparql_fdw tested against PostgreSQL 15 und 16

原文英文,约200词,阅读约需1分钟。发表于:

sparql_fdw sparql_fdw is a foreign data wrapper to access data available over the internet in the SPARQL format from within PostgreSQL based on Multicorn2. The soucre code and...

sparql_fdw是一个外部数据包装器,可以在PostgreSQL中访问SPARQL数据,基于Multicorn2。它支持的PostgreSQL版本包括12、13、14、15和16。

相关推荐 去reddit讨论
相关推荐 去reddit讨论