Tagged Questions

PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness. It runs on all major operating systems, including Linux, UNIX ...

learn more… | top users | synonyms (1)

0
votes
0answers
22 views

Vagrant don't sync shared folder

I want to add Vagrant to my rails project.After installing the requirements and log in to my VM with Vagrant ssh,I can't find files of my project in guest Vagrant folder.It's empty ! Cheffile ...
0
votes
0answers
27 views

Ubuntu 2 Node Cluster Postgresql 9.3 with pacemaker and Streaming Replication

I'm trying to setup a 2 Node Cluster with Postresql 9.3 and Streaming Replication. Streaming Replication is successfully configured. Master is listen up and is sending to slave. I can do failover ...
0
votes
0answers
7 views

SSL error: ccs received early

I'm getting this error on my slave postgresql server. 2014-11-21 10:30:05 CET FATAL: could not receive data from WAL stream: SSL error: ccs received early 2014-11-21 10:30:05 CET LOG: invalid ...
-1
votes
0answers
11 views

How to troubleshoot web application performance?

When using the Odoo 7 web interface to build a quotation, once the quotation includes 50+ line items, clicking the link to "Add an item" yields a red "Loading" message which flashes for 20+ seconds. ...
-3
votes
0answers
16 views

Postgresql on several disks [on hold]

I have got ubuntu 12.04 server with database(postgresql). There are two ssd disks for database. Application can use sharding data for several postgresql instances. I see two solutions for it: 1) ...
1
vote
1answer
46 views

Website performance sluggish - High CPU and Disk Usage

Over the past couple of days my website's performance has been very sluggish, with queries taking a lot of time to execute. My CPU usage hit around 100% 4 times this week. Here is the output of top at ...
1
vote
0answers
14 views

postgres dropping connections from Windows clients

Postgres appears to be losing connections from clients. The clients get an error, normally that the connection was closed by the server, while at the same time the server gets a log entry. Example: ...
0
votes
1answer
26 views

PostgreSQL queries slower than before?

I am using PostgreSQL 9.3 server on my production server. Everything had been working fine for the past couple of months. But since the past week or so, PostgreSQL seems to have becomes very slow with ...
0
votes
0answers
17 views

Memory usage of Postgresql and play framework

I am running a play framework application and a Postgresql server on a VPS which has 2vCores and 2GB of RAM and I'm having memory issues. I limited my play application to 1024MB with the parameter : ...
4
votes
1answer
193 views

What is the size of an IO Operation (IOP) in AWS EBS?

My research suggests that both the standard and the maximum (kernel limitations) block size for modern file systems (ext4, xfs) is 4KB. However, AWS allows IO operations as large as 256KB and says ...
1
vote
1answer
22 views

backup postgresql via docker exec

How would you go about taking automatic rotated backups of a postgresql database running inside a docker 1.3 container? I'm mostly interested in the overall approach vs. the details of actual the ...
0
votes
0answers
20 views

Why is Glassfish v3 thrashing JDBC Postgres connections?

I have an application running on Glassfish3 and Postgres. Looking at netstat and lsof there are an excesssive (thousands) of connections to postgres from localhost in TIME_WAIT. My team and I know ...
0
votes
1answer
33 views

How to query that a Postgresql database is online [closed]

Is there a query to determine whether a specific database is ready to receive queries? For example, Microsoft Sql provides the following query to determine the status of a database. SELECT ...
0
votes
0answers
18 views

Show images from S3 bucket into Ruby-on-Rails application [migrated]

I have setup an S3 bucket with name 'mobiles' and populated it with around 2000 images. The bucket has a folder structure as well like 'mobiles / vendor-name / model-name / model-image.jpg'. In my ...
0
votes
1answer
15 views

Postgres Remote Connection Timeout

I've been reading tutorials extensively to help figure out my problem, but to no avail. I have a Redhat VM that I've installed Postgres on that I'm trying to make available for remote connections. ...
2
votes
1answer
174 views

Cannot connect to PostgreSQL unix domain socket

I'm trying to connect to PostgreSQL Unix domain socket from a PHP web application. Relevant system components: CentOS 7 x64 (SELinux enforced) postgresql93 9.3.5-2PGDG.rhel7 nginx 1.6.2-1.el7.ngx ...
0
votes
0answers
31 views

How to upgrade from Postgres 9.1 to 9.3 allowing read access during upgrade

"PostgreSQL 9.1.2 on x86_64-unknown-linux-gnu, compiled by gcc-4.4.real (Debian 4.4.5-8) 4.4.5, 64-bit" is working in Debian 6.0 Squeeze It contains 12 databases accessed by 100 users from internet. ...
0
votes
0answers
23 views

PostgreSQL 9.3 and peer authentication

This seems stupid simple but it's not working. My pg_hba.conf: # type database user address type local all postgres peer # postgres user ...
-2
votes
2answers
60 views

Do we need enterprise support for RHEL/CentOS and PostgreSQL [closed]

We are an SI currently working on a proposal for an web app solution with tight budget. The 3rd party web app is written in JDK7 is to be deployed to 2 physical server running 3 VM each, one for ...
-1
votes
0answers
42 views

Postgresql Provided user name and authenticated user name do not match

I am trying to get tinyRSS running on my own server using PostgreSql. However I keep getting this error: LOG: provided user name (tinyrss) and authenticated user name (apache) do not match FATAL: ...
0
votes
1answer
35 views

How to install Postgres 9.3 parallel in Debian Squeeze

Debian 6 contains Postgres 9.1 installation installed from Debian backports in 5432 port How to install Postgres 9.3 also on this server. I found instructions in ...
0
votes
0answers
29 views

“bin/unpack200: not found” when installing TeamPostgreSQL

Running Ubuntu 14.04 64bit. I downloaded the 68MB .sh file from the project website. When I run the file with sudo I get the following output: ben@tardis:~$ sudo ./teampostgresql_ubuntu.sh Unpacking ...
0
votes
0answers
40 views

pgpool2 parallel mode: Non-superusers must provide a password in the connection string

I have two AWS RDS postgres nodes backing a parallel mode pgpool setup on EC2. After using pgbench to populate test tables, I get odd behavior from test queries. Any query that uses a function ...
0
votes
1answer
14 views

autocomplete is not working in postgreesql 8.4

I have installed postgresql 8.4.21 in my CentOS 5. But when I fire Select Query is it not showing me any completion if I press TAB key.. database=# select count is it any configuration in ...
2
votes
0answers
75 views

Postgresql 9.3 Log Shipping on a Hot Standby

My setup I've just set up streaming replication in postgres for the first time (9.3.5), and while the streaming is working as I expect, I'm struggling to get my standby to run the archive_command so ...
1
vote
1answer
71 views

Django: CONN_MAX_AGE persists connections, but doesn't reuse them with PostgreSQL

I've got a django setup are using Django 1.6.7 and Postgres 9.3 on Ubuntu 14.04 LTS. At any given time, the site gets about ~250 simultaneous connections to the PostgreSQL database, which is a Quad ...
0
votes
1answer
42 views

Connect with Java to Amazon EC2 instances

I have written a client-server application in Java and I want to run it on Amazon EC2 Ubuntu instacnes. The client runs on an EC2 instance and the server on one and the third EC2 instance is for ...
0
votes
2answers
29 views

postgreSQL archive process failed on

I upgraded a cluster from 8.3 to 8.4. Things seemed to be fine so I dropped the 8.3 cluster. Then noticed an error and found that the archive_command was still pointing to the 8.3 data directory ...
0
votes
0answers
78 views

Unable to proceed with Bucardo installation

I'm installing Bucardo to use it with PostgreSQL. My problem is, after I have created a process ID directory (something like /tmp/bucardo) and when I tried to proceed with the installation with the ...
0
votes
0answers
68 views

I Cannot Connect to PostgreSQL After Installing the Server App (OSX Mavericks)

(This is also posted in Ask Different.) I am running the latest version of Mavericks 10.9.5 on my Mac Mini Server. Before the upgrade to the latest version of the Server App 3.2.1 I was able to ...
0
votes
1answer
43 views

Most reliable MariaDB to Postgres dump method

I am in the process of migrating an app to another server, and will need to migrate the database contents from MariaDB to Postgresql. Most documentation indicates that the following format should ...
0
votes
1answer
32 views

Password Manager Pro backend database MS SQL vs PostgreSQL [closed]

I'm looking to manage users passwords through the programme Password Manager Pro. Reading the documentation it explains that you can use ether your own MS SQL database or use their default PostgreSQL ...
0
votes
2answers
42 views

How do I update YUM repositories to get Postgres9.x version?

I need to install some Postgres9.1 libs, but "yum list" only shows 8.4 version. How to "update" yum repo list to get 9.1 version? My Linux version: # cat /etc/redhat-release Red Hat Enterprise ...
0
votes
1answer
42 views

how to query postgresql database via salt

I need to run a query on a postgresql database in a module I'm writing for Salt. It won't do much, just query a table for a value to determine what version of the software is installed. The docs have ...
0
votes
1answer
31 views

OpenShift allow permanent external access to PostgreSQL [closed]

I have an OpenShift gear with Nginx and PostgreSQL, and need to allow a Java applet (served from Nginx) direct access to the PG database. I've already tried to edit ...
1
vote
0answers
64 views

Changing kernel.shmmax and kernel.shmmal on ubuntu?

We have an Ubuntu server with 6GB of RAM. We are trying to install Postgres but it is advising us to increase the values for kernel.shmmax and kernel.shmmal. The server is solely a Postgres DB ...
0
votes
1answer
36 views

Daily postgresql cron error log file

I am getting these emails daily: /etc/cron.daily/logrotate: error: error accessing /var/log/postgresql: No such file or directory error: postgresql-common:1 glob failed for /var/log/postgresql/.log ...
0
votes
0answers
22 views

.pgpass other system user as in file

i have a working script with a working .pgpass file. Now i want to run the script as root with the same(copy) .pgpass file. I copied the file in the $HOME directory from root. And changed permission ...
0
votes
1answer
29 views

pg_createcluster ssl cert behaviour different for 9.1 and 9.3 on Debian Squeeze

I think i found a bug in pg_createcluster when creating a 9.3 cluster. At first, my configuration: Debian Squeeze with PostgreSQL 9.1 from squeeze-backports and PostgreSQL 9.3 from apt.postgresql.org ...
1
vote
0answers
18 views

psql: How to include comments in \d output

In PostgreSQL it is possible to add comments to table columns. These will appear in the psql output from the "extended describe" \d+ command, however they will not appear in the standard \d output. ...
2
votes
2answers
77 views

How to minimize bandwidth in frequent postgres backup scenario?

I'm looking to make very frequent backup (every hour) of postgres data on several VMs (say 20-50) towards the same archive server. Here are more data if needed: Ideally, the system should support ...
0
votes
1answer
32 views

How to correctly run PostgreSQL on Fedora

I decided to to run PostgreSQL on my Fedora 20, so I did sudo yum install postgresql-server.x86_64 postgresql-libs.x86_64 postgresql.x86_64 Now if I do postgres -D /var/lib/pgsql/data under ...
1
vote
1answer
51 views

Databbase file structure on disk [closed]

I'm an interested in the fundamentals of databases for a project that I am currently working on. Specifically the physical storage on disk and how rows and indexes are stored in a file. For the most ...
1
vote
1answer
56 views

CentOS / PostgreSQL. How to keep connections open?

I would like to keep connections open on PostgreSQL for N time. I am not having problems keeping PostgreSQL itself open. The issue is that when the connection is idle for a few minutes, the ...
19
votes
2answers
1k views

Customer wants open postgresql port, how to make that secure?

So, this is the situation. It seems, we need to have an open tcp port 5432 for the world, where a customer has access to his postgresql database. Because obvious reasons, we can't say just "no", only ...
0
votes
0answers
51 views

pg_top does not show any postgres processes

postgres/postgresql is running but pg_top (pg_top -d postgres -U postgres) does not show any processes top: 1283 postgres 20 0 235m 5392 5204 S 2 0.0 881:17.41 postgres pg_top: last pid: 23462; load ...
1
vote
1answer
64 views

Postgresql failed to start server (startserver.vbs) on Windows Server 2008 R2 Enterprise (64b)

Trying to install postgresql in a Windows Server R2 Entreprise (64b) I get this: Iniciando el servidor de bases de datos... Executing cscript //NoLogo ...
1
vote
1answer
17 views

Most efficient way to upgrade postgresql 9.0.1 to latest minor version

What is the most efficient way to upgrade postgresql to the latest minor version when I'm running an operating system (Fedora Core 10) that's too old to be supported by official RPM releases? I have ...
0
votes
0answers
59 views

`rake db:migrate RAILS_ENV=production` gives error

When I run the command: rake db:migrate RAILS_ENV=production I get the following error: rake aborted! PG::ConnectionBad: could not connect to server: Connection refused Is the server running ...
2
votes
1answer
209 views

Cannot stop service (PostgreSQL) in Ubuntu 14.04 minimal OpenVZ

I'm trying to stop PostgreSQL but this results in a weird error about /proc/: root@dw0wanydbpv14fred:~# service postgresql stop * Stopping PostgreSQL 9.3 database server * Error: /proc must be ...