Time of Update: 2015-04-12
標籤:在利用postGIS匯入shapefile檔案到postgresql資料庫的時候,老是提示字串的問題,或者是亂碼,試了好幾種都不行,於是度娘之。。。。使用預設的UTF8,提示資訊是:建議使用LATIN1;Unable to convert data value to UTF-8 (iconv reports "Illegal byte sequence"). Current encoding is "UTF-8". Try "LATIN1" (Western European), or
Time of Update: 2015-04-06
標籤:Entity Framework 6串連Postgresql、SQLite、LocalDB的注意事項和設定檔 - 玄離時間 2014-09-03 01:05:00 部落格園精華區原文 http://www.cnblogs.com/znlgis/p/3952673.htmlPostgresqlPostgresql支援Code
Time of Update: 2015-03-28
標籤:nodejs postgresql 驅動 PostgresQL效能上不輸Mysql,而且支援很多進階特性,於是我寫了這個項目,根據libpg的c驅動,封裝了這個nodejs驅動。項目地址:git clone
Time of Update: 2015-03-19
標籤:因為CDH上需要用它來建HIVE的元庫。。。參考:http://www.cnblogs.com/mchina/archive/2012/06/06/2539003.html一、簡介PostgreSQL 是一種非常複雜的對象-關係型資料庫管理系統(ORDBMS),也是目前功能最強大,特性最豐富和最複雜的自由軟體資料庫系統。有些特性甚至連商務資料庫都不具備。這個起源於伯克利(BSD)的資料庫研究計劃目前已經衍產生一項國際開發項目,並且有非常廣泛的使用者。二、系統內容系統平台:CentOS
Time of Update: 2015-03-13
標籤:PG的設定檔是資料庫目錄下的postgresql.conf檔案,8.0以後的版本可支援K,M,G這樣的參數,只要修改相應參數後重新啟動PG服務就OK了。 shared_buffers:這是最重要的參數,postgresql通過shared_buffers和核心和磁碟打交道,因此應該盡量大,讓更多的資料緩衝在shared_buffers中。通常設定為實際RAM的10%是合理的,比如50000(400M) &nbs
Time of Update: 2015-03-12
標籤: 函數傳回型別描述例子結果string || stringtext字串聯接‘Post‘ || ‘greSQL‘PostgreSQLbit_length(string)int字串裡二進位位的個數bit_length(‘jose‘)32char_length(string)int字串中的字元個數char_length(‘jose‘)4convert(string using conversion_name)text使用指定的轉換名字改變編碼。convert(‘PostgreSQL‘
Time of Update: 2015-02-28
標籤:CentOS7 PostgreSQL安裝CentOS7 PostgreSQL安裝Install安裝使用yum安裝yum install http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-redhat94-9.4-1.noarch.rpmyum install postgresql94-server postgresql94-contrib設定開機啟動systemctl enable
Time of Update: 2015-03-04
標籤:postgresqlPG 系統查詢指令碼--查詢使用者進程及文本SELECT a.pid AS Id, a.usename AS User, a.client_addr AS Host, a.client_port AS Port, datname AS db, query AS Command, a.state AS Idle, l.mode as State, query_start AS Time, CASE WHEN c.relname IS NOT NULL THEN '
Time of Update: 2015-02-19
標籤:這裡只是部分筆記,主的掛了,切到備庫而已 主:192.168.1.111從:192.168.1.222 主伺服器sudo apt-get install rsync 從伺服器sudo apt-get install rsyncsudo apt-get install openssh-server 主db建立使用者sudo -u postgres psqlcreate user repuser replication login password ‘1
Time of Update: 2015-02-07
標籤:service postgresql start[....] Starting PostgreSQL 9.1 database server: main[....] The PostgreSQL server failed to start. Please check the log output: 2015-02-07 18:52:12 CST LOG: could not translate host name "localhost", service "5432" to
Time of Update: 2015-01-13
標籤:postgresql function 預存程序 什麼是預存程序, 百度百科是這麼定義的:儲存過程(Stored Procedure)是在大型資料庫系統中,一組為了完成特定功能的SQL
Time of Update: 2015-01-15
標籤:postgresql主從Ubuntu下搭建postgresql主從伺服器安裝略postgresql主伺服器:$ vi /home/postgresql/data/postgresql.conf按a或i進入編輯模式listen_addresses = ‘*’wal_level = hot_standby (預設為注釋的)max_wal_senders = 5
Time of Update: 2015-01-12
標籤:首先,安裝相關的依賴庫:1)GNU make要求有GNU make,版本要大於等於3.76.1,檢查gmake的方法下:gmake --version安裝命令:yum -y install make2)zlibPostgreSQL預設使用zlib壓縮庫安裝命令:yum -y install zlib-devel3)gcc由於編譯器要求是相容ISO/ANSI C的編譯器,遵從C89標準。安裝命令:yum -y install gcc4)GNU
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
標籤:style blog ar io color os 使用 sp for 1.安裝PostgreSQL前,確認Internet串連正常,以便下載安裝檔案。先使用 yum -y update
Time of Update: 2014-12-18
標籤:os sp 資料 bs nbsp 資料庫 sql res br 一、建立資料庫連接----------------接入PostgreSQL資料庫: psql -h IP地址
Time of Update: 2014-11-28
標籤:os sp 資料 bs 時間 資料庫 sql nbsp res 索引的含義與特點
Time of Update: 2014-11-30
標籤:des style blog http io ar color os sp EF的Code
Time of Update: 2014-11-12
標籤:postgresql function 階乘 PostgreSQL 功能龐大,對實現乘法這類運算有諸多的方法,今天我來簡單列舉下以下幾種便捷的途徑。比如我們要計算10!1、 可以用SQL給它展開:t_girl=# select 1*2*3*4*5*6*7*8*9*10 as mutiply_10; mutiply_10 ------------ 3628800(1
Time of Update: 2014-11-13
標籤:blog io ar os 使用 sp for 檔案 資料 安裝:yum install postgresql-serverservice postgresql