Time of Update: 2015-02-04
標籤:修改服務組態檔postgresql.conf中的監聽參數 預設設定檔在PGDATA目錄下(除了你是通過服務進程中的參數config_file來指定的) [[email protected] data]$ vi postgresql.conf ......listen_addresses = ‘*‘ # what IP address(es) to listen on;...... 修改pg_hba.conf檔案,添加一行host認證
Time of Update: 2015-02-03
標籤:Postgresql資料庫資料簡單的匯入匯出部落格分類: DataBasepostgres 命令操作: 資料的匯出:pg_dump -U postgres(使用者名稱) (-t 表名) 資料庫名(預設時同使用者名稱) > c:\fulldb.sql 資料的匯入:psql -U postgres(使用者名稱) 資料庫名(預設時同使用者名稱) <
Time of Update: 2015-01-28
標籤:1.下載前往官網地址下載最新的PostgreSQL Studio,我下載的是 pgstudio_1.2-bin .zip,由於我的電腦裡面沒有tomcat。假設電腦裡有配置好tomcat,能夠下載pgstudio_1.2.zip,解壓之後是一個war包。:http://www.postgresqlstudio.org/download/2.解壓將壓縮檔解壓,能夠看到例如以下檔案夾:3.執行在bin檔案夾下執行,啟動tomcat:./catalina.sh
Time of Update: 2015-01-22
標籤:這裡用一個執行個體來示範PostgreSQL預存程序如何返回資料集。1 首先準備資料表//member_categorycreate table member_category(id serial, name text, discount_rate real, base_integral integer);alter table member_category add primary key(id);alter table member_category add
Time of Update: 2015-01-22
標籤:什麼是預存程序, 百度百科是這麼定義的:預存程序(Stored Procedure)是在大型資料庫系統中,一組為了完成特定功能的SQL 陳述式集,儲存在資料庫中經過第一次編譯後再次調用不需要再次編譯,使用者通過指定預存程序的名字並給出參數(如果該預存程序帶有參數)來執行它。預存程序是 資料庫中的一個重要對象,任何一個設計良好的資料庫應用程式都應該用到預存程序。Postgresql的預存程序文法結構如下:CREATE OR REPLACE FUNCTION 函數名(參數1,[整型 int4,
Time of Update: 2015-01-22
標籤:PostgreSQL裡面給全文檢索索引或者模糊查詢加索引提速的時候,一般會有兩個選項,一個是GIST類型,一個是GIN類型,官網給出的參考如下:There are substantial performance differences between the two index types, so it is important to understand their characteristics.A GiST index is lossy, meaning that the
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
標籤:1 命令列登入資料庫有兩種方式,一是直接在系統shell下執行psql命令;而是先進入psql環境,然後再串連資料庫。下面分別給出執行個體:(1)直接登入執行命令:psql -h 192.168.1.120 -U username -d dbname ,其中username為資料庫使用者名稱,dbname為要串連的資料庫名,執行後提示輸入密碼如下: Password for user username:
Time of Update: 2015-01-09
標籤:Hive的預設資料庫為Derby,這個資料庫用於自己調試是可以的,但是要面對大量資料就有些力不從心了,所以接下來我要將Derby換為Postgresql,我會具體說一下在更換過程中需要注意的地方。 首先,下載Hive,我們直接下載穩定的apache-hive-0.14.0-bin.tar.gz,, http://apache.fayea.com/hive/stable/ 下載完成後,安裝,將Hive添加到環境變數中,編輯bashrc檔案 vim ~/.bashrc
Time of Update: 2015-01-07
標籤:postgresql 效能 sql 有兩張表T1,T2,表結構和資料如下:create table t1 ( id int);create table t2 ( id int, finished int);insert into t1 values (1);insert into t1 values (2);insert into t1 values (3);insert into
Time of Update: 2015-01-03
標籤: 一、建表 lihao=#create table tb (id int,pid int,name varchar); lihao=#INSERT INTO tb VALUES (1, 0, ‘廣東省‘); lihao=#INSERT INTO tb VALUES (2, 0, ‘浙江省‘); lihao=#INSERT INTO tb VALUES (3, 2, ‘衢州市‘); lihao=#INSERT INTO tb VALUES (4, 2, ‘杭州市‘);
Time of Update: 2014-12-25
標籤:posrgresql在centos上安裝 在linux上安裝。 1.1.1 軟體安裝 1.設定使用者組和使用者層級 Postgresql不能以root身份運行,要以其他的身份運行,所以必須建立對應的使用者和組。(1)新增database使用者組:groupadd
Time of Update: 2014-12-24
標籤:通過iostat命令發現某塊磁碟的io使用率經常保持在100%,通過blkid命令擷取linux raid儲存盤符和掛載點的關係後,最後發現是掛載點上的一個資料庫資料表空間在佔用大io。 現象
Time of Update: 2014-12-21
標籤:pg_hba.conf是用戶端認證設定檔METHOD指定如何處理用戶端的認證。常用的有ident,md5,password,trust,reject。PostgreSQL預設只監聽本地連接埠,用netstat -tuln只會看到“tcp 127.0.0.1:5432 LISTEN”。修改postgresql.conf中的listen_address=*,監聽所有連接埠,這樣遠程才能通過TCP/IP登入資料庫,用 netstat -tuln會看到“tcp
Time of Update: 2014-12-18
標籤:os sp 資料 bs nbsp 資料庫 sql res br 一、建立資料庫連接----------------接入PostgreSQL資料庫: psql -h IP地址
Time of Update: 2014-12-15
標籤:style blog ar color os 使用 sp 資料 div 首先更新一下源:sudo apt-get
Time of Update: 2014-12-18
標籤:ar os 使用 sp 資料 bs as nbsp sql 在postgresql中大家都用過round吧,當遇到小數的時候該如何顯示呢?看例子
Time of Update: 2014-12-13
標籤:io ar os sp for on div bs ad High Availability, Load Balancing, and Replication Feature
Time of Update: 2014-12-05
標籤:datagridview style blog http io ar os sp for modal DAL,BLL都是類庫的形式 最終結果如下: 資料庫代碼: --
Time of Update: 2014-12-03
標籤:io ar os 使用 sp strong on 檔案 資料 PostgreSQL資料表空間、模式、表、使用者/角色之間的關係是本文我們主要要介紹的內容,資料表空間,資料庫,模式,表,使用