Time of Update: 2015-08-19
標籤:PostgreSQL Replication系列翻譯自PostgreSQL Replication一書在本章中,將會介紹不同的複製概念,您會瞭解哪些類型的複製對哪一種實用情境是最合適的。 在本章的最後,您將能夠判斷某個概念在各種情況下是否是可行的。我們在本章將介紹以下主題:•
Time of Update: 2015-08-05
標籤: 我們知道,PostgreSQL資料庫中的資訊,最終是要寫入持久裝置的。那麼PostgreSQL是怎麼將資訊組織儲存在磁碟上的呢? Bruce Momjian有一個slide 《Insider PostgreSQL shared memory》,裡面的圖片非常直觀的描述了,shared buffer,page ,磁碟檔案之間的關係,請看。 接下來幾篇部落格,從不同層面講述PostgreSQL儲存相關的的記憶體:
Time of Update: 2015-08-01
標籤:需求描述:A表有如下資料id1234B表有如下資料idname1aaa1bbb1ccc2aa2bb3c A表和B表通過id關聯,需要查詢結果如下:idname1aaa,bbb,ccc2aa,bb3c4 查詢語句如下:[sql] view
Time of Update: 2015-07-30
標籤:JSONB-modifying operators and functionsIn 9.3 (and to a greater extent in 9.4), JSONB data could be extracted using various functions and operators, but nothing that could actually modify the data. As of 9.5, JSONB data can now be modified.jsonb |
Time of Update: 2015-06-15
標籤:postgresql從庫故障準備新庫1,建立使用者[[email protected] home]# userdel postgres[[email protected] home]# groupdel postgresmkdir /home/mydbchown -R postgres:postgres /home/mydb2,解壓安裝包[[email protected] home]## tar -xvf postgres/postgresql-8.1.4.
Time of Update: 2015-05-07
標籤:1、GREATEST(n1,n2,n3,..........) 擷取最大值testdb=#SELECT GREATEST(3,5,1,8,33,99,34,55,67,43); +---------------------------------------------------------+ | GREATEST(3,5,1,8,33,99,34,55,67,43) | +-------------------------------------
Time of Update: 2015-04-24
標籤:資料庫連接:dbconn.php<?php$conn = pg_connect("host=localhost port=5432 dbname=myd user=postgres password=postgres");if($conn){ print "has connected" . "<br>";}else{ print "connect failure" . "<br>";}?&
Time of Update: 2015-04-19
標籤: DataError: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)HINT: Use the same encoding as in the template database, or use template0 as template. [email protected]:~# su
Time of Update: 2015-03-05
標籤: 在PostgreSQL中,雙冒號(::)的作用是類型轉換,而在Hibernate中,SQL中冒號的作用是具名引數,用於SQL中具名引數的匹配,這時,當在PostgreSQL資料庫環境中,正常的SQL本身包括雙冒號時,通過Hibernate進行查詢就會報錯,這個應該是Hibernate的一個Bug,怎麼解決呢,本文將給出方案。
Time of Update: 2015-01-15
標籤:一、下載解壓1,下載postgresql-9.4.0-1-windows-x64-binaries.zip2,解壓postgresql-9.4.0-1-windows-x64-binaries.zip 到E:\二、添加使用者1,添加windows使用者,用於啟動PostgreSQL的windows服務net user postgres pgsqlpw /add /expires:never /passwordchg:no
Time of Update: 2015-01-13
標籤:姚博文 postgresql liste使用postgresql向客端推送訊息#listen message_channel;notify message_channel,‘hello todd‘;jdbc:Statement stmt = conn.createStatement();stmt.execute("LISTEN message_channel");stmt.close();notifications =
Time of Update: 2015-01-07
標籤:postgresql 遠端連線 開啟 前言:之前只會配置postgresql的指定IP的遠程許可權,後來一個客戶想通過遠端連線postgre,想查看資料,但是她的IP經常發生變動,導致我每次都要重新再進行設定,後來終於找到了方法,現做如下記錄:只針對Windows服務找到pg_hba.conf設定檔,路徑一般情況下為postgre安裝目錄的data目錄下C:\Program
Time of Update: 2014-11-05
標籤:postgresql 遍曆 遞迴 oracle path 昨天我用MySQL來實現了ORACLE的遞迴語句CONNECT BY, 看起來稍複雜些。今天來看看POSTGRESQL如何?ORACLE的CONNECT
Time of Update: 2014-11-02
標籤:style blog http io color os ar 使用 for 1、use
Time of Update: 2014-11-03
標籤:style io ar os 使用 sp on art log 原先使用的是官方提供的安裝包,但是安裝包會建立postgre這個使用者,在登陸介面看的有點不爽,搜尋了半天竟然沒有找到如何在
Time of Update: 2014-09-25
標籤:blog http os ar 檔案 資料 2014 問題 on 最近裝了linux系統CentOs6.5,由於項目中要用到PostgreSQL,所以裝了9.2的版本。由於接觸linu
Time of Update: 2014-08-13
標籤:blog http 使用 os 檔案 資料 for 2014 PostgreSQL
Time of Update: 2014-08-14
標籤:des os ar art cti sql res sp SELECT procpid, start,&n
Time of Update: 2014-07-26
標籤:style http color os 資料 io for art 系統:centos6.4 安裝postgresql9.3 (防火牆需要開啟5432連接埠) 添加yum源
Time of Update: 2018-12-08
建立表分區步驟如下: 1. 建立主表 CREATE TABLE users ( uid int not null primary key, name varchar(20)); 2. 建立分區表(必須繼承上面的主表) CREATE TABLE users_0 ( check (uid >= 0 and uid< 100) ) INHERITS (users); CREATE TABLE users_1 ( check (uid >= 100)) INHERITS (users)