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-06-09
標籤:最近因為工作需要寫了個登入校正函數,話不多說,貼代碼,因為只是一個簡單的介紹用法,所以核心判斷我就全部去掉了。//最先要求是只返回一個使用者id,於是簡單的returns integer就可以完成。 CREATE OR REPLACE FUNCTION validate_user()RETURNS integer AS$BODY$DECLARE i integer;beginreturn i;end;$BODY$LANGUAGE plpgsql VOLATILECOST 100;
Time of Update: 2015-05-19
標籤:postgresql主從postgresql+slony-i安裝配置主從slon軟體:slony1-1.2.6http://slony.info/downloads/1.2/source/postgresql:http://www.postgresql.org/download/http://www.postgresql.org/ftp/source/v8.1.23/ 一、postgresql安裝 方法1.rpm包安裝postfresql:所需軟體包:postgresq
Time of Update: 2015-05-12
標籤:postgresql1.更改表名alter table 表名 rename to 新表名2.更改欄位名alter table 表名 rename 欄位名 to 新欄位名3,更改欄位類型如:ID 欄位 原類型為 character varying(50) 新類型為integer其中,ID中原有資料為1,2,3等數字用如下語句更改alter table dbo.titemtype alter column id type integer using to_number(id,‘9‘ )
Time of Update: 2015-04-22
標籤:postgresql 資料庫 psql 遠端資料庫 匯入匯出 匯出遠端資料庫1.從遠端資料庫IP上的資料庫monitor匯出threshold表結構和資料到檔案threshold.sql:pg_dump -t threshold -h 135.32.94.142 monitor -U monitor -p 5432
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-05
標籤: 在PostgreSQL中,雙冒號(::)的作用是類型轉換,而在Hibernate中,SQL中冒號的作用是具名引數,用於SQL中具名引數的匹配,這時,當在PostgreSQL資料庫環境中,正常的SQL本身包括雙冒號時,通過Hibernate進行查詢就會報錯,這個應該是Hibernate的一個Bug,怎麼解決呢,本文將給出方案。
Time of Update: 2015-02-11
標籤:整理了一下PostgreSQL匯入匯出相關schema的方法。 一、匯出: 匯出his庫裡crm的schema表結構和資料(-n參數):pg_dump -h 192.168.2.154 -p 5432 -d his -n crm -f test.sql只匯出his庫裡crm的schema表結構(-s參數):pg_dump -h 192.168.2.154 -p 5432 -d his -n crm -s -f test2.sql 二、匯入不同schema中
Time of Update: 2015-01-22
標籤:什麼是預存程序, 百度百科是這麼定義的:預存程序(Stored Procedure)是在大型資料庫系統中,一組為了完成特定功能的SQL 陳述式集,儲存在資料庫中經過第一次編譯後再次調用不需要再次編譯,使用者通過指定預存程序的名字並給出參數(如果該預存程序帶有參數)來執行它。預存程序是 資料庫中的一個重要對象,任何一個設計良好的資料庫應用程式都應該用到預存程序。Postgresql的預存程序文法結構如下:CREATE OR REPLACE FUNCTION 函數名(參數1,[整型 int4,
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-06
標籤:來自:http://bbs.chinaunix.net/thread-955564-1-1.html 參考文檔 http://bbs.chinaunix.net/viewthr ... page%3D1#pid6997819 http://topic.csdn.net/t/20050617/12/4089010.html postgresql 資料同步 slony1是基於postgresql的非同步通知機製做的複製技術, 其同步速度非常快。
Time of Update: 2015-01-01
標籤:postgresql jdbc PostgreSQL是一款開源的資料庫,從mysql被收購之後逐漸得到了廣泛應用,可以說市面上的公司選擇使用它,的確是一個大膽、創新的想法,postgresql擁有眾多資料庫的特性如orcale的sequence,還擁有很多商務資料庫不具備的資料類型如幾何類型,IP類型,並且也支援視圖、觸發器、資料庫約束。如果覺得mysql太單調可以試試PostgreSQL,一定大有收穫。一
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-15
標籤:style blog ar color os 使用 sp 資料 div 首先更新一下源:sudo apt-get
Time of Update: 2014-12-17
標籤:ar io os for java on 資料 art cti 在資料庫日漸龐大的時候,為了方便對資料庫資料的管理,比如按時間,按地區去統計一些資料時,基數過於龐大,多有不便。很多商務資料
Time of Update: 2014-11-28
標籤:style blog color os 使用 sp div log linux 最近要在linux下使用PostgreSQL,在網上搜了下資料,整理下PostgreSQL-9.3安裝與配置
Time of Update: 2014-11-05
標籤:postgresql 遍曆 遞迴 oracle path 昨天我用MySQL來實現了ORACLE的遞迴語句CONNECT BY, 看起來稍複雜些。今天來看看POSTGRESQL如何?ORACLE的CONNECT
Time of Update: 2014-10-18
標籤:python postgresql flask-admin This code recipe gives you an idea of how to use Flask-Admin with postgresql database.from flask import Flaskfrom flask.ext.admin import Adminfrom flask.ext.admin
Time of Update: 2014-09-25
標籤:blog http os ar 檔案 資料 2014 問題 on 最近裝了linux系統CentOs6.5,由於項目中要用到PostgreSQL,所以裝了9.2的版本。由於接觸linu
Time of Update: 2014-09-06
標籤:style blog http os io 使用 2014 sp log 1,postgresql學習uri推薦