Time of Update: 2016-05-13
標籤:postgreSQL在linux中安裝詳解 收藏 這裡安裝8.4.4版本,首先下載postgresql-8.4.4-1-linux.bin。(http://www.postgresql.org/download/)下載linux32版本的1.
Time of Update: 2016-04-30
標籤:緣起iso=> \d+ test; Table "public.test" Column | Type | Modifiers | Storage | Description --------+-----------------------+-----------+----------+------------- no | character varying(32) | not null |
Time of Update: 2015-10-13
標籤:備份資料庫:pg_dump -h localhost -U root demo02 > /home/arno/dumps/demo02.bak恢複資料庫:psql -h localhost -U root -d demo < demo.bak備份表:pg_dump -h localhost -U root demo02 -t books > /home/arno/dumps/books.bak恢複表:psql -h localhost -U root -d
Time of Update: 2015-09-18
標籤: 一.部署說明1.1 實施環境本文檔實驗環境如下:PGSQL主機: 192.168.1.45PGSQL備機: 192.168.1.50 軟體和系統版本Pgsql 版本: pgsql 9.2.4Linux 版本: Redhat 5.8 1.2 文檔說明 本文檔詳細說明了PG的雙機擴充,使pgsql資料庫具備雙機熱備流複製功能。注意,雙機熱備中存在主從關係,這樣才能保證資料的一直性,
Time of Update: 2015-09-15
標籤:一、環境VM虛擬機器NAME="Ubuntu"VERSION="12.04.4 LTS, Precise Pangolin"二、過程 1.安裝make,現在不裝也行。# apt-get install make# make --versionGNU Make 3.81Copyright (C) 2006 Free Software Foundation, Inc.This is free software; see the source for copying
Time of Update: 2015-08-19
標籤:執行完您的第一個即時恢複(PITR,Point-In-Time-Recovery),我們準備在一個真正的複製設定上工作。在本章,您將學會如何設定非同步複製和流。我們的目標是確保您可以實現更高的高可用和更高的資料安全性。在本章,我們將討論以下主題:• 配置非同步複製• 理解流• 合并流和歸檔• 行政時間線在本章的最後,您將很容易地在幾分鐘內設定流複製。4.1 設定流複製在前面章節中,我們已經從簡單的16MB
Time of Update: 2015-07-09
標籤:一、安裝環境 ubuntu 14.04LTS Postgresql-9.4.3 zabbix-2.4.5 httpd-2.4.12 php-5.6.10二、選擇原因 選擇postgresql資料庫的原因,除了是因為 zabbix 的資料業務相對複雜,比使用 mysql 更加優勢,而且mysql的資料表容易壞,時常需要修複。現在雖然nginx比較流行,但對於高穩定,且不需要高並發的應用,推薦還是用apache,且使用 prefork
Time of Update: 2015-06-09
標籤:1. 檢查PostgreSQL 是否已經安裝rpm -qa|grep postgres 檢查PostgreSQL 是否已經安裝若已經安裝,則使用rpm -e 命令卸載。rpm -e postgresql94-contrib-9.4.3-1PGDG.rhel6.x86_64 postgresql94-server-9.4.3-1PGDG.rhel6.x86_64 卸載rpm -e postgresql94-9.4.3-1PGDG.rhel6.x86_64
Time of Update: 2015-05-12
標籤:postgresql 時間格式函數 timestamp PostgreSQL協助文檔9.8. Data Type Formatting FunctionsThe PostgreSQLformatting functionsprovide a powerful set of tools for converting various data types(date/time, integer,
Time of Update: 2015-03-12
標籤:postgresql允許遠端存取配置修改postgresql預設情況下,遠端存取不能成功,如果需要允許遠端存取,需要修改兩個設定檔,說明如下:1.postgresql.conf將該檔案中的listen_addresses項值設定為“*”,在9.0 Windows版中,該項配置已經是“*”無需修改。2.pg_hba.conf在該設定檔的host all all 127.0.0.1/32
Time of Update: 2015-01-28
標籤:PostgreSql查看當前表被哪些引用作參考表-- pg_CONSTRAINT.contype : p(主鍵), f(外鍵), u(唯一), c(檢查)-- 查看當前表IDSELECT oid, relname FROM pg_class WHERE relname = ‘syslogfilter‘;-- 查看引用當前表ID作參考表的主外鍵約束資訊SELECT * FROM pg_CONSTRAINT WHERE confrelid = ‘24935‘;--
Time of Update: 2014-12-03
標籤:style ar os sp strong on 資料 art log 在遠程伺服器上安裝了postgresql,用
Time of Update: 2014-11-14
標籤:style blog color os 使用 sp 資料 div log 一、查看哪些使用者在連結資料庫select * from pg_stat_activity ;
Time of Update: 2014-10-16
標籤:postgresql metasploit KaLi 串連 postgresql 資料庫 查看 postgresql 是否啟動,沒有啟動的話,使用 service postgresql start 命令啟動。啟動後查看是否啟動成功,連接埠是 5432,:650) this.width=650;"
Time of Update: 2014-10-04
標籤:http os 使用 資料 sp c amp r linux 關於PostgreSQL的使用 平台: Ubuntu 12.04 & 14.04 版本: PostgreSQL 9.3
Time of Update: 2014-09-16
標籤:rails postgresql psql: 致命錯誤: 使用者 "postgres" Ident 認證失敗1安裝好postgresql資料庫後需要初始化及一些配置rails項目才能串連postgresql安裝好postgresql資料後(yum命令直接安裝的)第一步:初始化資料庫#service postgresql
Time of Update: 2018-12-07
listen_addresses='localhost' 非動態 --postgresql監聽的網卡ip,預設僅僅本地,可以配置多個,使用“,”分割。“*” 代表所有的網卡ipport=5432 非動態 --連接埠max_connections=100
Time of Update: 2018-12-07
超級使用者:類似於其他系統的sa、root、sysdbainitdb.exe 初始化是建立的第一個superuser 的名字 和 執行initdb.exe
Time of Update: 2018-12-07
本人使用Oracle和PostgreSQL數年,一直試圖將Oracle中許多先進的功能在PostgreSQL中使用,所以也在這方面一直比較注意,下面先整理出3點,以後會慢慢完善。 (1)和Oracle類似的dblink功能 使用過oracle的人都知道,oracle有個很先進的功能叫:dblink,能夠在一個資料庫中操作另外一個遠端資料庫,比如:一個資料
Time of Update: 2018-12-07
什麼是RAMDISK?我們如何用它來提高資料庫server的響應速度? Ramdisk就是說用作於硬碟空間的記憶體。無論什麼時候你使用Ramdisk,實際上你是在使用記憶體而不是硬碟。在這一點上既有優點又有缺點。最基本的,最大的優點是你是在使用記憶體,你所做的一切都會快一些,因為硬碟的速度較記憶體慢。最大的缺點是如果你改變了資料庫伺服器的內容並且重新啟動機器時,所做的一切改動都將丟失。 對於資料庫Server PostgreSQL來說, 如果你將所有的資料庫調入記憶體將會大大提高它的速度。