Greenplum adds mirror steps
[TOC]
Summary
The newly installed green plus cluster has only primary nodes and no mirror. High availability is not guaranteed. So you need to add mirror nodes to the cluster
Note: When the amount of data is too large, adding mirror will result in greater disk pressure, because the background will always synchronize the data, which online syste ...
Posted by jumpenjuhosaphat on Sat, 30 Mar 2019 09:18:28 -0700
Net Programmers Learn Oracle Series (14): Subquery, Collection Query
1,Subquery
1.1,Introduction to Subqueries
1.2,WITH Subquery
2,Aggregate query
2.1,UNION and UNION ALL
2.2,MINUS
2.3,INTERSECT
2.4,Set Operations and ORDER BY
3,DISTINCT clause
3.1,General usage
3.2,Parameters for aggregation functions
4,summary
1. Subquery
1.1. Introduction to Subqueries
A sub-query is a query nested in SE ...
Posted by harmor on Mon, 25 Mar 2019 17:51:30 -0700
CentOS 6.9 compiles and installs pdo_pgsql and PgSQL extension for postgresql and php
1. Installation Dependence
yum install gcc gcc-c++ make readline-devel flex zlib-devel
2. Download the source code and decompress it
Create Source Storage Directory
mkdir -p /usr/local/src
cd /usr/local/src
Download decompression
wget -c https://ftp.postgresql.org/pub/source/v10.0/postgresql-10.0.tar.gz
tar -zxvf postgresql-10.0.tar.gz
cd postg ...
Posted by Swedie on Sat, 16 Feb 2019 20:54:19 -0800
PostgreSQL 10.0 preview performance improvement - radix tree improves character encoding conversion performance
Label
PostgreSQL, 10.0, Radix tree, character encoding conversion
background
PostgreSQL 10.0 uses radix tree to improve the performance of UTF-8 and other character encoding conversions.
The encoding map file is arranged according to the new radix tree, and its performance is much better than that of binary search.
Use radix tree for charact ...
Posted by sysop on Wed, 13 Feb 2019 08:00:18 -0800
PostgreSQL update tbl1 from tbl2 one-to-many considerations (exactly which one matches)
Label
PostgreSQL, update from, one-to-many
background
First of all, table A and table B need related columns. After association, table A and table B should have a one-to-one or one-to-one relationship. If one-to-one, it is easy to understand.
What if it's one-to-many? Any database will give you an uncertain answer (related to the scanning me ...
Posted by littleelmo on Tue, 12 Feb 2019 19:00:18 -0800
PostgreSQL 10.0 preview change - pg_xlog,pg_clog,pg_log directory renamed pg_wal,pg_xact,log
Label
PostgreSQL , 10.0 , pg_xact , pg_wal , log , pg_clog , pg_xlog , pg_log
background
10.0 renamed several directories with certain ambiguities. They are respectively
pg_xlog, pg_clog, pg_log
Renamed
pg_wal, pg_xact, log
They correspond to WAL (write ahead log) log, transaction status log and log respectively.
It saves people from deletin ...
Posted by droomagon on Mon, 11 Feb 2019 20:03:17 -0800
PostgreSQL aggregate expression FILTER, order, within group usage
Label
PostgreSQL, aggregation, filter, order, within group
background
PostgreSQL has powerful analysis functions, such as supporting multi-dimensional analysis, supporting four kinds of aggregation, supporting window query, supporting recursive query and so on.
For the use of four major types of aggregation, please refer to
<PostgreSQL ag ...
Posted by thirdeye on Mon, 11 Feb 2019 17:09:19 -0800
Linux page allocation failure problem handling - zone_reclaim_mode
Label
PostgreSQL, Linux, page allocation failure, memory
background
Linux kernel allocation fails.
After using a certain amount of memory, HANG.
There may be similar errors in dmesg, system HANG live, can not connect, need to restart to solve.
page allocation failure
Oct 24 11:27:42 kernel: : [21289.479063] python2.6: page allocati ...
Posted by kaen on Thu, 07 Feb 2019 20:30:17 -0800
grouping sets/rollup/cube of group by of postgresql
postgresql has provided rollup/cube/grouping sets grouping functions since 9.5, which is more convenient to use. Especially when sql is used directly to produce reports, one sql can get all the details and summary values.
https://www.postgresql.org/docs/9.5/static/sql-select.html https://www.postgresql.org/docs/9.5/static/queries-table-expres ...
Posted by djp120 on Wed, 06 Feb 2019 17:03:18 -0800
PostgreSQL & PostGIS of GIS on CentOS 7
PostgreSQL & PostGIS
Install postgresql
After configuring the yum source, you can find that the version of PostgreSQL is 9.2.23 by using yum info postgresql. If you want to install the latest version, you can refer to the following operation
https://www.postgresql.org/download/linux/redhat/
http://docs.nextgis.com/docs_ngweb/source/install ...
Posted by dt_gry on Tue, 05 Feb 2019 02:18:16 -0800