Follow these steps to solve the problem by referring to the online method. (Which step is required? So far it is not very clear. O (∩ _ ∩) O Haha ~)
1. When PostgreSQL is installed for the first time, the database cluster initialisation failed is
According to previous colleagues, this database is faster than oracle. I want to perform a test.
The test content is very simple. The same table structure and the same amount of data are counted several times to compare to the average time.
The
From the Internet, we can see that. NET operates on PostgreSQL.
Article
Http://www.zdnet.com.cn/developer/code/story/0,3800066897,39530081-1,00.htm)
According to his example, it is wrong, mainly because of some details, which he did not
Problem:Org. PostgreSQL. util. psqlexception: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.Solution: Edit/var/lib/pgsql/data/PostgreSQL. conf fileChange# Listen_addresses = '
Conclusion:
1. using PHP magic_quotes_gpc is incorrect. This function has been deleted since PHP 5.4.0. Http://www.php.net/manual/zh/function.get-magic-quotes-gpc.php
2. php addslashes is incorrect. Because it does not correspond to MySQL or
PostgreSQL provides a simple description of table space for two reasons:
Expand the storage space, jump out of the OS's file system size limit, and constantly expand the available space
Let the database administrator optimize the system
Environment: centos 6.3 minimizes the default installation and configures the NIC.
Before installing PostgreSQL, check that the Internet connection is normal to download the installation file.
Use the Yum-y update command to upgrade the system
Example 1:
-- Function: getopngrd (numeric) -- drop function getopngrd (numeric); Create or replace function getopngrd (opnsq numeric) Returns character varying as $ body $ declare rec record; opngrd "varchar": = ''; SQL "varchar"; begin
-- Po_info is the main table, po_item is the slave table, and po_info contains the updated field lastupdatetime, which is the associated field po_id of the two tables.
--------------- Po_id: Use a trigger to monitor table updates and use
Install
1. Yum install PostgreSQL postgresql-Server
2. initialize the database and start the service
Service PostgreSQL initdb
Service PostgreSQL start
3. When PostgreSQL port 5432 has a firewall, it must be enabled.
Configuration
The installation
Because it is in the development stage, the Postgres parameter is not configured, and the default configuration during installation is used,In the past, nothing was abnormal, but my CPU usage suddenly increased a few days ago.Check the process and
Note that the download is a binary version, not a Windows installer.
Http://www.enterprisedb.com/products-services-training/pgbindownload
Download idea from x86Before performing the following steps, make the following assumptions:
PostgreSQL is to
Vacuum is an important task in PostgreSQL database management.
The reason is as follows:
Release the disk space occupied by update/delete rows.
Updates the statistics used in the PostgreSQL query plan.
This prevents old data from being lost due
Create or replace function autogenfeature_function () returns text as $ declare B _count int; beacon_id int; _ total int; begin select count (*) into B _count from Beacon; _ Total: = B _count; while B _count> 0 loop select PID into
1. input parameters
NPageSize number of records per page
The page number of the nPageIndex to display,> = 1
StrOrderByFieldName sorting Field
StrOrderByDirection
Other query Conditions
2. calculate the total number of pages
Total number of
The following describes how to install postgresql on redhat8.0.
1. Download the source code package 8.0.1
2. installation./Configure
Make
Su
Make install
Adduser postgres
Mkdir/usr/local/pgsql/data
Chown
There are usually several injection syntaxes commonly used in injection: -- display version -- data explosion from a known table segment field -- column library -- table segment in the column database -- field in the list segment -- read
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.