Time of Update: 2016-06-02
標籤:PostgreSQL update and delete property from JSONB column up vote 2 down vote favorite From this article, I tried to update or delete property of a JSONB column:CREATE TABLE xxx (id BIGSERIAL, data JSONB);INSERT INTO xxx(data) VALUES( ‘{"a":1,"b":2}
Time of Update: 2016-05-29
標籤: #安裝python pip (在實體環境中安裝)sudo apt-get install python-pip
Time of Update: 2016-05-26
標籤:系統內容:windows7 64位postgreSQL9.0(64bit) ps:安裝postgreSQL時確定安裝了odbc驅動。 問題:點擊“開始-》控制台-》管理工具-》資料來源(ODBC)-》使用者DSN-》添加”,未出現postgreSQL關聯選項。 點了“完成”後會讓你輸入資料庫服務地址、使用者密碼之類的。完成後就OK了。 使用資料來源編輯器: 點下一步:&
Time of Update: 2016-05-25
標籤:以前學習postgresql的筆記 create table 消耗 OID如create table my_test_table, 他本身會消耗一個 會在pg_type中插入兩條記錄_my_test_table和my_test_table會消耗掉兩個oid 如果該表需要toast會產生一個改變的toast表和toast index表消耗另外兩個,查看過程如下: create table my_test_table(a int, b char(8192));select oid,
Time of Update: 2016-05-21
標籤:http://my.oschina.net/hippora/blog/375292下載源碼並解壓[root@fnddb ~]# wget https://ftp.postgresql.org/pub/source/v9.4.0/postgresql-9.4.0.tar.bz2[root@fnddb ~]# tar -xjvf postgresql-9.4.0.tar.bz2 [root@fnddb ~]# cd
Time of Update: 2016-05-17
標籤:Navicat for PostgreSQL 資料庫使用“使用者”和“組”管理資料庫存取許可權,使用者擁有資料庫物件,例如資料庫,可以在這些對象上指定許可權給其他使用者,控制其他使用者訪問對象的範圍及許可權。本Navicat教程就是來解析 Navicat for PostgreSQL 資料庫組設計器的,下面就給大家介紹介紹。Navicat for PostgreSQL 使用者PostgreSQL
Time of Update: 2016-05-12
標籤:流程:【1】c語言編寫逆地理編碼的函數,利用curl庫和高德伺服器進行地理座標解析【2】gcc產生動態連結程式庫【3】postgreSQL中載入動態連結程式庫中的函數【4】postgreSQL中將逆地理編碼函數的傳回型別進行轉化===========================================【1】c語言編寫逆地理編碼的函數,利用curl庫和高德伺服器進行地理座標解析#include <stdio.h>#include
Time of Update: 2016-05-03
標籤:MySQL同PostgreSQL對比MySQL相對來說比較年輕,首度出現在1994年。它聲稱自己是最流行的開來源資料庫。MySQL就是LAMP(用於Web開發的軟體包,包括Linux、Apache及Perl/PHP/Python)中的M。構建在LAMP棧之上的大多數應用都會使用MySQL,包括那些知名的應用,如
Time of Update: 2016-04-22
標籤:PostgreSQL和PostGIS的安裝主要有兩種方式,從源碼安裝和用包管理工具安裝,推薦用包管理工具安裝,下面是在CentOS 7.1 X64 上安裝的具體步驟 安裝YUM repository. 推薦使用 PGDG(PostgreSQL Global Development Group)的repository,這個repository包含官方最新的PostgreSQL及匹配的PostGIS,使用別的repository沒有最新的或者沒有匹配的PostGIS。
Time of Update: 2016-04-16
標籤:CREATE TABLE products ( product_no integer, name text, price numeric CONSTRAINT positive_price CHECK (price > 0));CHECK 返回bool 值。外鍵參照完整性、參考完整性A foreign key constraint specifies that the values in a column (or a group of columns) must
Time of Update: 2016-04-07
標籤:1、Explainexplain select * from tablename; 2、explain輸出josn格式explain (format json) select * from tablename;除了json格式,還支援xml、text、yaml等 3、explain analyze查看實際的啟動時間explain analyze select * from tablelname;另一種方法:explain(analyze true) select *
Time of Update: 2016-03-26
標籤:1、安裝postgresql$sudo apt-cache search postgresql //尋找最新的postgresql包$sudo gem apt-get install postgresql包名 //選擇包名進行安裝安裝postgis$sudo apt-cache search postgis //尋找最新的postgresql$sudo apt-get install
Time of Update: 2016-03-02
標籤:PostgreSQL版本快速升級 寫在前面 PostgreSQL9.5版本支援資料分區的功能,為以後做分布式考慮,準備將生產環境的9.1版本升級至9.5。中間需要做資料移轉。 在遷移操作中,為保證資料完整性,一般需要在資料庫停止的情況下進行備份恢複操作,在資料量小的情況下,通過pg_dumpall的方式備份恢複也是很迅速的,但如果資料量大的情況,再使用這種方式將會耗去大量的時間,特別在生產環境中,長時間的停止使用資料庫是非常致命的。 PostgreSQL提供了pg_upgr
Time of Update: 2016-02-19
標籤:Pentaho Data Integration(kettle):一個優秀的抽取、轉換、載入(Extract Transform and Load,ETL)工具Pentaho Report
Time of Update: 2016-02-18
標籤:PostgreSQL Performance Monitoring Toolshttps://github.com/CloudServer/postgresql-perf-toolsThis package includes three useful scripts aimed to help to pinpoint performance issues on systems with PostgreSQL as database backend.All scritps are
Time of Update: 2016-01-29
標籤:How to debug plpgsql with pgAdminIII[[email protected] soft_bak]# git clone git://git.postgresql.org/git/pldebugger.gitInitialized empty Git repository in /opt/soft_bak/pldebugger/.git/remote: Counting objects: 445, done.remote: Compressing
Time of Update: 2015-12-07
標籤:postgres=# \h create tablespace Command: CREATE TABLESPACEDescription: define a new tablespaceSyntax:CREATE TABLESPACE tablespace_name [ OWNER user_name ] LOCATION ‘directory‘ [ WITH ( tablespace_option = value [, ... ] ) ]postgres=#
Time of Update: 2015-12-06
標籤:centos postgresql 本文記錄PostgreSQL在CentOS 6.7上安裝、配置、使用等方面的資料以及操作過程。一、準備工作1、CentOS
Time of Update: 2015-11-11
標籤:一、環境 $ psql --versionpsql (PostgreSQL) 9.4.4 我們都知道,超級使用者的許可權太大了,為了資料庫的安全,對於非管理員帳號,需要建立普通使用者。 二、文法
Time of Update: 2015-11-09
標籤:原文連結: Linux怎麼設定PostgreSQL遠端存取 安裝PostgreSQL資料庫之後,預設是只接受本地訪問串連。如果想在其他主機上訪問PostgreSQL資料庫伺服器,就需要進行相應的配置。 配置遠