Time of Update: 2017-01-13
環境說明系統:centos 6.4 64位軟體:postgresql 9.4.1 軟體下載cd /usr/local/src/wget https://ftp.postgresql.org/pub/source/v9.4.1/postgresql-9.4.1.tar.gz 安裝依賴包yum install -y perl-ExtUtils-Embed readline-devel zlib-devel pam-devel libxml2-devel
Time of Update: 2017-01-13
匯出表pg_dump -h localhost -U postgres(使用者名稱) 資料庫名(預設時同使用者名稱) -t table(表名) > dump.sql匯入表psql -f dump.sql完整的匯入匯出表的例子1,查看一下原資料庫-bash-3.2$ psql -U playboy -d
Time of Update: 2017-01-13
PostgreSQL 功能龐大,對實現乘法這類運算有諸多的方法,今天我來簡單列舉下以下幾種便捷的途徑。比如我們要計算10!1、 可以用SQL給它展開: t_girl=# select 1*2*3*4*5*6*7*8*9*10 as multiply_10; multiply_10 ------------ &
Time of Update: 2017-01-13
今天升級OS X Yosemite後,啟動postgesql時報以下錯誤:...FATAL: could not open directory "pg_twophase": No such file or directoryIs the server running locally and acceptingconnections on Unix domain socket
Time of Update: 2017-01-12
標籤:安裝 設定 運行 ice 系統語言 main var libxml XML
Time of Update: 2017-01-12
標籤:postgresql9.6 centos71.pgdg-centos96-9.6-3.noarch.rpmPostgreSQL 9.6--》CentOS 7 - x86_64下載連結:https://yum.postgresql.org/repopackages.phprpm -ivh pgdg-centos96-9.6-3.noarch.rpm2.postgresql96-server# yum install -y postgresql96-server# yum install
Time of Update: 2017-01-03
標籤:postgresql pgsql postregs PostgreSQL 是一種非常複雜的對象-關係型資料庫管理系統(ORDBMS),也是目前功能最強大,特性最豐富和最複雜的自由軟體資料庫系統。os:centos6.5 x64ip:192.168.85.130hostname: vm2.lansgg.compg
Time of Update: 2016-12-29
標籤:我的電腦 add 下載 inline log www src jre postgre 一、下載驅動 https://jdbc.postgresql.org/download.html
Time of Update: 2016-12-28
標籤:資料庫 account gre pos join weight 提取 epo res SELECT t.* FROM person, jsonb_to_record(info) AS t(
Time of Update: 2016-12-21
標籤:ati select 查詢語句 char 插入 bsp 產生 var return MyBatis中普通的insert語句是這樣的: <insert id="insert"
Time of Update: 2016-11-15
標籤:get color 最新 mysq 效果 1.7 use 自己 blog 最近在學hibernate,常見的教程都是搭配mysql,因為公司本地電腦用的是pg,所以就嘗試著做個pg的小de
Time of Update: 2016-11-09
標籤:postgresql 安全層級一、配置說明:角色名稱:user01 1.user01許可權說明:串連test資料庫,未授權時無法串連其它資料庫;在指定schema,建立\查看\刪除表,查看schema中對象;2.其它普通使用者:無法串連test資料庫及schema(sales)中對象,需要授權;二、操作步驟:instance(執行個體級): role(角色)$ psql postgrespostgres=# CREATE ROLE user01 LOGIN
Time of Update: 2016-11-08
標籤:屬性 技術 服務 右擊 postgres 資料庫伺服器 l資料庫 post sql資料庫 在安裝PG資料庫的過程中,會選擇安裝目錄以及資料存放目錄和連接埠,並需要選擇Loc
Time of Update: 2016-10-22
標籤:建立資料庫 資料集 com ada images image highlight 技術 datalist  
Time of Update: 2016-10-09
標籤:需要基於MVC的WebAPI搭建一個服務介面,資料存放區在postgresql資料庫,在使用的過程中遇到了很多問題。做一下記錄:(1) System.IO.FileLoadException: 未能負載檔案或程式集“Npgsql, Version=3.1.2.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7”或它的某一個依賴項。找到的資訊清單定義與程式集引用不匹配。 (異常來自 HRESULT:0x80
Time of Update: 2016-09-18
標籤: 1.建立樣本表create temp table settings asselect ‘{"west": [ {"id": "aa92f346-7a93-4443-949b-4eab0badd983", "version": 1}, {"id": "cd92e346-6b04-3456-050a-5eeb0bddd027", "version": 3} ]}‘::jsonb as value;2.如下保留version=1的資料,
Time of Update: 2016-09-21
標籤:兩處修改:1.postgresql.conflisten_addresses項值設定為“*”,在9.0 Windows版中,該項配置已經是“*”無需修改。2.pg_hba.confhost all all 127.0.0.1/32 md5行下添加以下配置host all all 0.0.0.0/0
Time of Update: 2016-08-31
標籤:postgresql 設定檔最佳化設定檔預設的配置設定檔是儲存在/etc/postgresql/VERSION/main目錄下的postgresql.conf檔案如果想查看參數修改是否生效,可以用psql串連到資料庫後,用<show 選項名> 來查看。如果要修改shared_buffers, 在ubuntu下可能需要執行命令<sysctl -w>Managing Kernel Resources主要選項選項預設值說明是否最佳化原因max_connections100
Time of Update: 2016-08-31
標籤:設定檔 使用者 change 1、找到postgresql的設定檔 postgresql.conf 的位置2、修改裡面的一個參數,max_connections = 100# (change requires restart)預設值是100 ,修改為自己需要的值即可,3、修改以後重啟,重啟需要postgres使用者或者root使用者啟動本文出自 “董永剛的部落格”
Time of Update: 2016-08-26
標籤:擷取every_check_accident表中的自增id的最大值SELECT last_value FROM every_check_accident_id_seq; $list = DB::getInstance(self::DBNAME)->pg_insert_id(‘every_check_accident‘,‘id‘); 查看postgre的版本select version();$list = DB::getInstance(self::DBNAME)-