Label:Objective:Recently do data synchronization, need to get data from PostgreSQL, found that once the data is more, then the speed of reading is very slow, and memory consumption is very much GC not fall.Code Sample:In order to facilitate the explanation, the following writing the case code, from B2c_order to obtain data, this data table about 6G. Package Com.synchro;
Import java.sql.*;
/**
* Created by Qiu.li on 2015/10/16.
*
/public class Test
1. Download
To the website to download the latest PostgreSQL Studio, I downloaded pgstudio_1.2-bin. zip because there are no Tomcat in my computer.
If the computer has a good configuration of tomcat, you can download Pgstudio_1.2.zip, after decompression is a war package.
Download Address: http://www.postgresqlstudio.org/download/
2. Decompression
Unzip the compressed file to see the following directory:
3. Run
Run in Bin directory:
./catal
character used for judgment. It is the same as and 1 = 2. It is only used for judgment and has no practical significance. and 1 = 2 can be replaced with 1 = 3, 1 = 4, even 1 = 1000000000000000000000, which is only used for judgment and meaningless. What if we replace 'A' with something meaningful? For example, version () does not need to be enclosed in quotation marks. For a comparison, see xx. php? Id = 0 + union + select + 1, 'A', null, 2, 3, null, 'B', 2, 'C', 3, 'D', 4, 'E', 6 xx. php? Id =
Tags: blog http os using IO file AR data artTransferred from: http://blog.csdn.net/qpengyanting123/article/details/7497556(1) User utility program:Createdb Create a new PostgreSQL database (and the SQL statement: Create DATABASE is the same)CreateUser Create a new PostgreSQL user (and SQL statement: Create user is the same)DROPDB Deleting a databaseDropuser Deleting a userPg_dump to export the
How to disable the deadlock process in PostgreSQL, postgresql Process
The PostgreSQL database used has no information. Google had to proceed.
Finally, a solution was found in an English forum.
As follows:
1. Retrieve the ID of the deadlock Process
Copy codeThe Code is as follows:SELECT * FROM pg_stat_activity WHERE datname = 'deadlock database id ';In the re
Processing Method for PostgreSQL database transactions in unknown state, postgresql Processing Method
Background
Database transactions are atomic operations, either successful or failed. However, from the client perspective, there may be a third State: unknown.
After the client submits a transaction (rollback, commit, prepare xact, rollback pxact, commit pxact) Request, the database receives the request and
PostgreSQL operations-Basic psql commands and postgresql operations-psql
1. Establish a database connection----------------Access PostgreSQL database: psql-h IP address-p port-U Database Name
Enter the Database Password.
2. Access the database
1. List databases: \ l2. Select Database: \ c Database Name3. view all tables in a database: \ dt4. Switch Database
Postgresql fatal error: Reserved connection locations are reserved for Super Users who execute non-replication requests, and postgresql Super Users
Recently, database monitoring of the monitoring system is always delayed. An error is reported when you view the log:
10:20:19, 534 ERROR Traceback (most recent call last): File "oracle_mon.py", line 306, in
Check that the number of active connections used by
Original article: rails access the PG DB
In rails and Ruby, when I find that I want to access PostgreSQL, I always find that the required libraries are: Gem install Postgres-PR, Gem install Postgres, that is to say, the Postgres library is used to exchange data with PG. When I use Ruby to directly use require 'postgres', I find that the latest Postgres version must be downgraded before Ruby can be called, the specific cause is not found, because the
Brief introduction. Net+postgresql (PG) This combination I've been using for a long time, it feels pretty good. But most people talk about it. NET platform, or will think of its "original" matching Microsoft SQL Server (MSSQL), in fact, no MSSQL and no problems, and even without Windows Server is no problem, who said. NET must be on the Microsoft family barrel? W
Postgresql database import and export, postgresql Import and ExportExport a remote database
1. Export the threshold table structure and data to the file threshold. SQL from the database monitor on the remote database IP Address:
pg_dump -t threshold -h 135.32.94.142 monitor -U monitor -p 5432 -f threshold.sql
-T specifies the name of the table to be exported;
-H: Specifies the database address;
-U indicat
PostgreSQL usage notes (my company uses arterydb, sub-installed postgreSQL), postgresqlarterydb-- Start the database./Bin/aty_ctl-D data-l arterydb. log start-- Connect to the database./Bin/atysql-d artery-- Set Environment VariablesExport LD_LIBRARY_PATH = '/home/arterydb/lib'-- Delete a tableDrop table table_name;-- Query whether the table existsSelect count (*) into FYDM from information_schema.tables wh
Tags: style class blog Code http Tar1. DownloadGo to the official website to download the latest PostgreSQL Studio, I downloaded the pgstudio_1.2-bin zip, because there is no Tomcat on my computer.If you have tomcat configured on your computer, you can download Pgstudio_1.2.zip, which is a war package after decompression.: http://www.postgresqlstudio.org/download/2. UnzipUnzip the compressed file, you can see the following directory:3. RunningRun in t
Install and configure PostgreSQL 9.4.3 in CentOS 6.5
I. IntroductionPostgreSQL is a very complex object-relational database management system (ORDBMS). It is also currently the most powerful, feature-rich and complex free software database system. Some features are not even available in commercial databases. This database research program originated from Berkeley (BSD) has now been developed into an international development project and has a wide ran
the most shining star in the open-source community. I tried it a few years ago, but I did some research in depth. A basket of MySQL installation information is available on the Internet. I am on the road again after I have any experience introduction. After preliminary tests, they all went well. Coincidentally, A friend talked to me about PostgreSQL and talked about the differences between the two open-source databases. My friend told me that MySQL i
How to connect and configure php with the mssql database. Php Tutorial how to connect and configure PHP extension php_mssql.dll with mssql database tutorial to connect SQLServer2000, use mssql series functions to operate, and operate MySQL. 1. open the PH php Tutorial to connect to and configure the mssql database tuto
Schematic installation PostgreSQL"Bo Master" anti-bone Aberdeen "original address"http://www.cnblogs.com/liqingwen/p/5894462.htmlOrderA friend of the "ASP. NET core Project Rights Management System (3) using PostgreSQL through EntityFramework core requires PostgreSQL database, and considering that its subsequent learning also involves the
Label:2.3 Understanding consistency and data lossIt is not possible to mine PostgreSQL transaction logs without regard to consistency. In the first part of this chapter, we have largely explained the basic idea of the transaction log. You already know that the ability to make data in a good shape without prior log changes is difficult or even impossible. So far, most of us have been discussing the problem of collapse. It is absolutely not good to lose
Reprinted from http://zhenghaoju700.blog.163.com/blog/static/13585951820116782843994/Install a PostgreSQL first (see Supplemental knowledge)Compare Oracle PL/SQLDbms_output.put_line ("This is a log") in PL/SQL; Simple commissioning is possibleOf course our PostgreSQL also has the corresponding function RAISE NOTICE ' This is a log% ', param;% placeholder param replacement ValueRAISE There are other levels d
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.