AlterEgo20
Re:PostgreSQL Query Optimization
on Sunday April 10, 2016 @01:33PM (#11467210)
As for number 5 - Postgres already does that. This feature is called "constraints". Such constraints can be applied to multiple columns and are used to build better query plans (as well as limiting DML operations)
Re:PostgreSQL Bloat: origins, monitoring and managing
on Wednesday April 06, 2016 @08:37AM (#11438325)
Even a single rare rollback can kill a prod DB. We had a situation when a bug in our code caused a series of huge UPDATEs in Oracle DB and LOCKed some critical tables. After ~2 hours we found this session and killed it.
The problem - we had to wait for 2 more hours with dead prod while Oracle was rolling back everything. In Oralce killed sessions still hold their locks while rolling back.
In Postgres rollback is almost instant.
Re:DalmatinerDB: A fast, distributed metric store
on Tuesday March 22, 2016 @07:52AM (#11335800)
There is not suck thing as "NoSQL store". NoSQL is just a buzzword that is used to describe dozens (hundreds?) of very different solutions.
Re:A list of PostgreSQL libraries, tools and resources
on Monday February 15, 2016 @03:22PM (#11105663)
Google "Postgres BDR". It is new, but it allows you to replicate changes on master to another master. With some configuration it can even change replicated data.
Re:0.30000000000000004
on Friday November 13, 2015 @02:40PM (#10561944)
Any SQL DBMS is able to store and handle NUMERIC data type. It is a binary decimal with any precision you may want.
Some of the DBMS's also have dedicated currency types.
Re:PostgreSQL on the Command Line
on Wednesday October 28, 2015 @12:10PM (#10465219)
Backup: http://www.postgresql.org/docs/current/static/app-pgdump.htm...
In short:
pg_dump -Fc mydb > db.dump
Restore: http://www.postgresql.org/docs/current/static/app-pgrestore....In short:
pg_restore -C -d postgres db.dump
Command directly from the shell: psql -c "psql command"
Re:PostgreSQL Magic
on Friday September 11, 2015 @11:02AM (#10204043)
Easy. Just use dblink or foreign table to execute part of the statement inside other transaction. dblink to the same server/db is often used as way to create an "AUTONOMOUS_TRANSACTION"
Re:What's Coming in PostgreSQL 9.5
on Friday July 03, 2015 @06:23AM (#9824631)
Why `nohup postgres 2>&1 > postgres.log &` instead of `pg_ctl start`? You could also use `pg_ctl -w start` to wait for proper server startup instead of `sleep 2`
Re:Crate: Elastic Data Store
on Wednesday October 22, 2014 @04:21AM (#8491860)
"modern development frameworks can handle data integrity stuff". Wrong. They cant. If you have 2+ applications working with the same db, there will be problems with data integrity that no "modern development framework" can solve.
Re:Need Postgresql HTTP API Extension
on Monday September 22, 2014 @10:12AM (#8350599)
"one view per user" - you can have a single VIEW, that filters rows based on user name ("owner_user_name" column in the base table). Or use some kind of mapping table for "user_name" <-> "table PK id". It gets more complicated with inherited user roles, but still manageable.
Re:Need Postgresql HTTP API Extension
on Monday September 22, 2014 @09:22AM (#8350415)
There are `security_barrier` VIEWs. They give a "way of restricting a given connection/user to only rows with the right foreign key in a table". Still you have to create them all (not a simple task for complex DB scheme).
Re:Show HN: Stellar – Git for PostreSQL and MySQL
on Friday August 22, 2014 @11:05AM (#8212404)
Yep. Damn auto correct.
Re:Show HN: Stellar – Git for PostreSQL and MySQL
on Friday August 22, 2014 @10:53AM (#8212338)
Postgres has transactional DDL and DML. If anything fails - everything is rolled back.
Re:SQL vs. NoSQL
on Monday June 02, 2014 @11:23AM (#7833955)
Hm. "rows actually not being written to the db during normal circumstances". A database that acts like /dev/null ? Like BLACKHOLE MySQL storage engine? I can not imagine a real use case, where it will be needed. If you allow a database to lose "some" rows it may well lose all of them. What is the purpose of a database that does not store your data?
Re:SQL vs. NoSQL
on Monday June 02, 2014 @04:01AM (#7832374)
There is Asynchronous Commit feature in postgres, that allows you to gain performance by allowing postgres to lose some commited transactions. It can be controlled on transaction level and is exactly :"Go ahead, lose this. I don't care about it". Manual: http://www.postgresql.org/docs/current/static/wal-async-comm...
Re:Unicode support in MySQL is...
on Saturday March 01, 2014 @06:58AM (#7323977)
phppgadmin?
Re:Ask HN: What keeps you off of Postgres?
on Thursday February 20, 2014 @05:21PM (#7274080)
> 3) Better backup options.
Already exist as "Continuous Archiving". Was done by third party tools in version 8, part of the core in 9. Details: http://www.postgresql.org/docs/current/static/continuous-arc...
> 4) Replication
Master - slave is in core of version 9. Allows fast switchover, but is somewhat harder to swith back.
> RAC
Logical replication is already in 9.4 . And with logica replication we might soon see full master - master replication in core postgres.
Re:Count distinct performance compared on top 4 SQL databases
on Tuesday January 28, 2014 @03:35AM (#7136046)
Did you use default postgres configuration? By default postgres uses very small amount of RAM and is forced to store hash maps on disk -> very significant slowdown.