postgresql

Is it possible to replace Cloud SQL proxy with Istio proxy?

感情迁移 提交于 2021-01-01 06:53:24
问题 Currently I am using Cloud proxy to connect to a Postgres Cloud SQL database as a sidecar. When using Istio, however it introduces its own sidecar, which lead to the result that there are two proxies in the pod. So I thougth, can the encrypted connection not also established using Istio? Basically, it is possible to connect to an external IP using Istio. It should also be possible to configure a DestinationRule which configures TLS. And it also be possible to create Client certificates for

Unable to login to Postgres inside Kubernetes cluster from the outside

╄→гoц情女王★ 提交于 2021-01-01 06:40:20
问题 I want to simply login to a postgres db from outside my K8 cluster. I'm created the following config: apiVersion: apps/v1 kind: Deployment metadata: name: postgres spec: replicas: 1 selector: matchLabels: app: postgres template: metadata: labels: app: postgres spec: volumes: - name: postgres-storage persistentVolumeClaim: claimName: database-persistent-volume-claim containers: - name: postgres image: postgres volumeMounts: - name: postgres-storage mountPath: /var/lib/postgresql/data subPath:

Mikro-orm error: password authentication failed for user “postgres”

霸气de小男生 提交于 2021-01-01 04:33:23
问题 I'm trying to code along this React GraphQL TypeScript tutorial The project uses MikroOrm to communicate with a PostgreSQL database. I have PostgreSQL(12.4) installed on my Ubuntu 18.04, created a "postgres" user and I can log in to the user and run psql without any problems. However, when I start using mikro-orm commands like npx mikro-orm migration:create (video timestamp), I get the following error: error: password authentication failed for user "postgres" at Parser.parseErrorMessage (

Mikro-orm error: password authentication failed for user “postgres”

旧巷老猫 提交于 2021-01-01 04:32:25
问题 I'm trying to code along this React GraphQL TypeScript tutorial The project uses MikroOrm to communicate with a PostgreSQL database. I have PostgreSQL(12.4) installed on my Ubuntu 18.04, created a "postgres" user and I can log in to the user and run psql without any problems. However, when I start using mikro-orm commands like npx mikro-orm migration:create (video timestamp), I get the following error: error: password authentication failed for user "postgres" at Parser.parseErrorMessage (

Postgres: extract text up to the Nth Character in a String

杀马特。学长 韩版系。学妹 提交于 2021-01-01 04:14:51
问题 How can I extract the text up to the 4th instance of a character in a column? I'm selecting text out of a column called filter_type up to the fourth > character. To accomplish this, I've been trying to find the position of the fourth > character, but it's not working: select substring(filter_type from 1 for position('>' in filter_type)) 回答1: You can use the pattern matching function in Postgres. First figure out a pattern to capture everything up to the fourth > character. To start your

阿里云云数据库RDS核心能力演进

China☆狼群 提交于 2021-01-01 01:47:29
  云计算已经进入普及期,不少企业开始从自建数据中心转向云计算。在云计算资源的使用上,从最开始只是使用IaaS层基础资源,转向使用包括云数据库在内的各类PaaS资源。数据库是企业IT架构的核心部分,RDS关系型数据库服务已经成为企业重度依赖的云服务。   过去7年的持续发展,2018年阿里云首次进入Gartner的数据库魔力象限,能够入选Gartner,这是中国数据库厂商的一次突破。阿里云入围Gartner充分说明,在新一波技术浪潮之上进行创新,才可能做出突破。云数据库已经不仅仅是简单地完成数据库在云资源中的搭建,数据库曾经是IT系统中最昂贵的投入之一。对企业CXO们(CEO、CFO、CTO、CIO等)而言,更加灵活的生命周期管理,可以实现成本的合理投入及灵活管理。对DBA技术人员而言,更高的安全性、更全面的监控能力、更便捷的运维方式,将改变DBA在企业的工作模式及地位。   从企业管理者及DBA的角度,我们将针对企业对数据库的各方面需求基于:全生命周期、全方位运维、全链路安全、全链路监控、多引擎覆盖 5个方面进行横向对比,希望给广大读者呈现一张《2018阿里云云数据库RDS核心能力演进》大图。   全生命周期   灵活的生命周期管理,可以让企业以最合适的投入成本使用云计算资源,对于任何规模的企业,这都是开源节流的有力手段。一个IT项目通常会经历以下阶段:   项目规划:按量付费

开源数据库openGauss获“中国优秀开源项目”奖 把企业级数据库能力带给用户

独自空忆成欢 提交于 2020-12-31 11:25:27
12月29-30日,由中国电子技术标准化研究院主办的第十届中国云计算标准和应用大会在北京举行。本次大会以“标准聚力 开源共赢”为主题,邀请到政产学研用各界代表汇聚一堂,聚焦“云计算赋能新基建”和“开源群智化创新”两大话题,共享标准化、开源化、产业化重磅成果,推动产业转型升级和经济高质量发展。 在大会上,中国开源云联盟组织开展了“2020年中国优秀开源项目”奖项的评选活动,从技术发展潜力、团队健康度、项目活跃度、协作开发度和受关注程度等多个方面进行综合评选。其中,开源数据库openGauss荣获“中国优秀开源项目”奖项。 openGauss加速企业级数据库进程 2020年是“十三五”收官之年,在产业发展新机遇与国际发展新形势下,“新基建”国家战略明确了以云计算为代表的新一代信息技术正在加速演化为“新兴技术基础设施”,而开源已成为推动云计算核心技术创新、产业全球化应用、生态多元共治的关键手段和资源配置模式。因此,openGauss能获得“中国优秀开源项目”奖项,是行业对其技术发展潜力的认可,也是所有贡献、使用和关注openGauss的开发者的共同荣誉。 openGauss 开源数据库内核源自 PostgreSQL,深度融合华为在数据库领域多年的经验,提供面向多核的极致性能、全链路的业务和数据安全、基于 AI 的调优和高效运维的能力,采用木兰宽松许可证 v2 发行

干货丨DolphinDB与Aliyun HybridDB for PostgreSQL在金融数据集上的比较

给你一囗甜甜゛ 提交于 2020-12-31 10:25:56
1. 概述 DolphinDB Database 是一款高性能混合列式数据库和数据分析系统,尤其擅长处理时间序列数据。Aliyun HybridDB for PostgreSQL(以下简称HybridDB)是由阿里巴巴提供的基于开源Greenplum定制的MPP架构企业级通用数据仓库产品。 2. 测试环境 DolphinDB部署在5个ecs.r5.large节点上,每个节点基本配置如下: 操作系统:Ubuntu 16.04 处理器:Intel Xeon Platinum 8163 (2 Cores) 内存:16 GB 硬盘:150 GB SSD HybridDB采用2C SSD配置,拥有4个计算节点,每个节点基本配置如下: 处理器:2 Cores 内存:16 GB 硬盘:160 GB SSD DolphinDB采用1个主节点,4个计算节点,配置8个worker和2个local executor,每个计算节点限制使用12 GB内存。 HybridDB直接使用,不做任何进一步的配置,每个计算节点2个段数据库。经过测试开启Pivotal Query Optimizer时HybridDB表现更差,因此本报告中所有测试都默认只使用Legacy Query Optimizer。 压缩为gzip的CSV数据存放在阿里云OSS服务器上。DolphinDB通过内网获得OSS上的数据后解压并加载

How to Group by and concatenate arrays in PostgreSQL

。_饼干妹妹 提交于 2020-12-31 05:47:35
问题 I have a table in PostgreSQL. I want to concatenate all the arrays(i.e. col ) after grouping them by time . The arrays are of varying dimensions. | time | col | |------ |------------------ | | 1 | {1,2} | | 1 | {3,4,5,6} | | 2 | {} | | 2 | {7} | | 2 | {8,9,10} | | 3 | {11,12,13,14,15} | The result should be as follows: | time | col | |------ |------------------ | | 1 | {1,2,3,4,5,6} | | 2 | {7,8,9,10} | | 3 | {11,12,13,14,15} | What I have come up with so far is as follows: SELECT ARRAY

How to Group by and concatenate arrays in PostgreSQL

最后都变了- 提交于 2020-12-31 05:46:47
问题 I have a table in PostgreSQL. I want to concatenate all the arrays(i.e. col ) after grouping them by time . The arrays are of varying dimensions. | time | col | |------ |------------------ | | 1 | {1,2} | | 1 | {3,4,5,6} | | 2 | {} | | 2 | {7} | | 2 | {8,9,10} | | 3 | {11,12,13,14,15} | The result should be as follows: | time | col | |------ |------------------ | | 1 | {1,2,3,4,5,6} | | 2 | {7,8,9,10} | | 3 | {11,12,13,14,15} | What I have come up with so far is as follows: SELECT ARRAY