经纬度 经纬postgresql geometry

postgresql查看表、字段注释

一、查看pg 表字段‘名称’、‘类型’、‘非空’、‘注释’ SELECT a.attname as 字段名, format_type(a.atttypid,a.atttypmod) as 类型, a.attnotnull as 非空, col_description(a.attrelid,a.att ......
字段 注释 postgresql

Go - Run a sql file on PostgreSQL using pgx

package main import ( "context" "log" "os" "github.com/jackc/pgx/v5/pgxpool" ) const DB_SOURCE = "postgresql://root:aaa@localhost:5432/zimple_bank?ssl ......
PostgreSQL using file Run sql

PostgreSQL - Start a container with docker compose file

Docker compose file: services: postgres: image: postgres:16-alpine environment: - POSTGRES_USER=root - POSTGRES_PASSWORD=aaa - POSTGRES_DB=zimple_bank ......
PostgreSQL container compose docker Start

PostgreSQL从小白到高手教程 - 第38讲:数据库备份

PostgreSQL从小白到专家,是从入门逐渐能力提升的一个系列教程,内容包括对PG基础的认知、包括安装使用、包括角色权限、包括维护管理、、等内容,希望对热爱PG、学习PG的同学们有帮助,欢迎持续关注CUUG PG技术大讲堂。 第38讲:数据库备份 PostgreSQL第38讲:12月09日(周六) ......
PostgreSQL 备份 高手 数据库 教程

经纬恒润以太网网关,智能时代网络通关

车产业新四化步伐持续加速,智能网联逐渐成为整车标配,随着近年来相关政策频出以及对网联需求和功能的深度挖掘与发展,中国本土市场及本土供应商在这场新浪潮中逐渐走向C位。经纬恒润深耕智能网联领域多年,先后推出四代网关产品,覆盖CAN、LIN、Flexray、百兆以太网、千兆以太网、OTA Master等, ......
以太网 网关 经纬 智能 时代

postgresql从入门到精通 - 第37讲:postgres物理备份和恢复概述

PostgreSQL从小白到专家,是从入门逐渐能力提升的一个系列教程,内容包括对PG基础的认知、包括安装使用、包括角色权限、包括维护管理、、等内容,希望对热爱PG、学习PG的同学们有帮助,欢迎持续关注CUUG PG技术大讲堂。 第37讲:物理备份和恢复概述 第37讲:12月09日(周六)19:30, ......
postgresql 备份 postgres 物理

Geometry Fill Area Style

Geometry Fill Area Style ########################### ......
Geometry Style Fill Area

PostgreSQL筛选包含中文的字段

筛选中文内容 匹配一个或多个非中文字符 SELECT * FROM table1 WHERE field1 ~ '[^\u4e00-\u9fa5]+'; [\u4e00-\u9fa5] 表示匹配中文字符,加上前面的取反符号 ^ 即表示匹配不是中文字符,+表示一个或多个。\u4e00-\u9fa5 是 ......
字段 PostgreSQL

linux安装postgresql三种方式【转】

linux下安装PostgreSQL可采用三种方式,二进制已编绎安装包、安装、源码安装三种方式进行安装 方式1:yum安装,建议使用这种 参看官方文档如下地址: sudo yum install -y sudoyum install -y postgresql15-server sudo /usr/ ......
postgresql 方式 linux

StackGres 数据库平台工程,使用 Citus + Patroni 创建生产级高可用分布式 PostgreSQL 分片集群

系列 StackGres, 可私有部署的云原生数据库平台工程 StackGres 数据库平台工程功能介绍与快速上手 StackGres 1.6 数据库平台工程集群配置管理(K8S Pods/PostgreSQL/PgBouncer) StackGres 1.6 数据库平台工程,集群高可用(Patro ......

PostgreSQL: select for update实战

场景 需要获取用户申请的流水号,其值记录在number_of_form表中。但当多个用户同时申请时,会出现单号重复的情况,现在需要保证单据号码的一致性 解决方案 以我搜寻来看,大体有两种做法。 悲观锁:总是假设最坏的情况,也就是每次拿数据的时候,都认为别人会修改,所以每次拿数据,都会对符合条件的数据 ......
PostgreSQL 实战 select update for

debian11 bullsye postgresql-11

curl http://mirrors.zju.edu.cn/postgresql/repos/apt/ACCC4CF8.asc | apt-key add - vim /etc/apt/sources.list.d/pgdg.list deb http://mirrors.zju.edu.cn/p ......
postgresql bullsye debian 11

StackGres 1.6 数据库平台工程集群配置管理(K8S Pods/PostgreSQL/PgBouncer)

Postgres 配置 PostgreSQL 的配置在 SGPostgresConfig CRD 中指定。如果在创建集群时没有指定自定义配置,StackGres 将创建一个默认配置,您可以在 这里 看到。 https://stackgres.io/doc/latest/reference/crd/s ......

记录一次 postgresql 优化案例( volatility 自定义函数无法并行查询 )

同事最近做个金融适配项目,找我看条SQL,告知ORACLE跑1分钟,PG要跑30分钟(其实并没有这么夸张)😎, 废话不说,贴慢SQL。 慢SQL(关键信息已经加密): explain analyze SELECT c_qxxxxaode, '2023-03-22 00:00:00' AS d_cd ......
postgresql volatility 函数 案例

Triangulated Geometry

Triangulated Geometry ############################ ......
Triangulated Geometry

Github Actions - Creating PostgreSQL service containers

# Service containers to run with `container-job` services: # Label used to access the service container postgres: # Docker Hub image image: postgres # ......

PostgreSQL - ERROR: deadlock detected

ERROR: deadlock detectedDETAIL: Process 209 waits for ShareLock on transaction 1034; blocked by process 201.Process 201 waits for ShareLock on transac ......
PostgreSQL deadlock detected ERROR

PostgreSQL - Check blocking SQL statements

pg_locks view Looking at pg_locks shows you what locks are granted and what processes are waiting for locks to be acquired. A good query to start look ......
PostgreSQL statements blocking Check SQL

「安装odoo Windows版,无法勾选PostgreSQL Database」的解决方案

存在问题 安装odoo Windows版时,PostgreSQL Database无法被勾选。 出现的原因是,曾经安装过PostgreSQL Database;虽然可能已被卸载,但注册表内还有残余信息,导致odoo认为PostgreSQL Database仍存在于系统之中。 解决方案 删除注册表内的 ......

经纬恒润eVCU助力Stellantis量产落地

近日,Stellantis搭载经纬恒润整车控制器(eVCU一代平台)的车型平台已量产落地。该车型主要面向北美市场,首款量产车型为商用货车车型。 ......
经纬 Stellantis eVCU

DBeaver连接PostgreSQL后只有默认数据库“postgres”不显示其他数据库的问题解决办法

我们在使用DBeaver连接PostgreSQL后,发现数据库中只有“postgres”默认数据库,不显示我们自己创建的数据库。 1、🍕问题描述 我们在使用DBeaver连接PostgreSQL后,发现数据库中只有postgres默认数据库,不显示我们自己创建的数据库。如下图所示: 2、🍔解决办 ......
数据库 数据 PostgreSQL postgres 只有

postgresql从入门到精通教程 - 第36讲:postgresql逻辑备份

PostgreSQL从小白到专家,是从入门逐渐能力提升的一个系列教程,内容包括对PG基础的认知、包括安装使用、包括角色权限、包括维护管理、、等内容,希望对热爱PG、学习PG的同学们有帮助,欢迎持续关注CUUG PG技术大讲堂。 第36讲:PostgreSQL逻辑备份 第36讲:12月02日(周六)1 ......
postgresql 备份 逻辑 教程

Swept Solid Geometry

Swept Solid Geometry ################################# ......
Geometry Swept Solid

postgreSql使用postgis实现空间聚簇

聚合前 聚合后 具体sql /* 使用ST_ClusterDBSCAN函数,ST_ClusterDBSCAN是窗口函数用来对数据进行聚簇 第一个参数是字段,第二个参数是距离,他是用的是度,这里写0.000179大约就是20米,minpoints表示多少个聚合才算是一个簇,比如两台车就算是聚集,那就设 ......
postgreSql postgis 空间

Triangulated Geometry With Textures

Triangulated Geometry With Textures ############################### ......
Triangulated Geometry Textures With

PostgreSQL - Change Timezone

The default timezone of a newly created database is UTC. You can set the timezone to a new value sessionly or globally: zzh@ZZHPC:~$ docker exec -it p ......
PostgreSQL Timezone Change

SQLC - Problem: can't recognize the numeric data type in PostgreSQL

Problem: sqlc can't recognize the numeric data type in PostgreSQL, it makes it string. The default sql_package database/sql can't overwrite the "numer ......
PostgreSQL recognize Problem numeric SQLC

PostgreSQL - Install PostgreSQL Client

zzh@ZZHPC:~$ sudo apt install postgresql-client zzh@ZZHPC:~$ psql --version psql (PostgreSQL) 14.9 (Ubuntu 14.9-0ubuntu0.22.04.1) ......
PostgreSQL Install Client

PostgreSQL数据库开启 a=null等价于a is null 功能

前言 PostgreSQL官方文档:http://www.postgres.cn/docs/11/functions-comparison.html 今天在预览PostgreSQL文档的时候看到了这个功能,平时写SQL都是a is [not] null来进行判断的,第一次见到可以这样,觉得挺新奇的就 ......
等价 null PostgreSQL 功能 数据库

PostgreSQL锁,第1部分:行锁

理解PostgreSQL锁对于构建可伸缩的应用程序和避免停机是很重要的。现代计算机和服务器有许多CPU核心,可以并行执行多个查询。数据库包含许多一致的结构,这些结构由并行运行的查询或后台进程所做的更改可能导致数据库崩溃,甚至损坏数据。因此,我们需要能够阻止来自并发进程的访问,同时更改共享内存结构或行 ......
PostgreSQL 部分