Learning PostgreSql: old versions of rows are stored right in the table

Posted by Alexander Kuznetsov on SQL Blog See other posts from SQL Blog or by Alexander Kuznetsov
Published on Thu, 07 Nov 2013 20:26:00 GMT Indexed on 2013/11/08 4:07 UTC
Read the original article Hit count: 382

Filed under:
|
PostgreSql features multi-version concurrency control aka MVCC. To implement MVCC, old versions of rows are stored right in the same table, and this is very different from what SQL Server does, and it leads to some very interesting consequences. Let us play with this thing a little bit, but first we need to set up some test data. Setting up. First of all, let us create a numbers table. Any production database must have it anyway: CREATE TABLE Numbers ( i INTEGER ); INSERT INTO Numbers ( i ) VALUES...(read more)

© SQL Blog or respective owner

Related posts about Agile-learning

Related posts about postgresql