Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eqKvu-00079K-NQ for pgsql-general@arkaria.postgresql.org; Mon, 26 Feb 2018 15:43:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eqKvt-00074v-1A for pgsql-general@arkaria.postgresql.org; Mon, 26 Feb 2018 15:43:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eqKvs-00074U-IU for pgsql-general@lists.postgresql.org; Mon, 26 Feb 2018 15:43:16 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eqKvn-0001AU-K8 for pgsql-general@postgresql.org; Mon, 26 Feb 2018 15:43:15 +0000 Received: by mail-pg0-x241.google.com with SMTP id g12so6314166pgs.0 for ; Mon, 26 Feb 2018 07:43:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rxmg-com.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=7dY58jIqd7Xyq0ovKUsI6oGnM7fzC8pUeG7C9V7C+Lg=; b=nZaCm1XUSHDJP+VVtDzgf7ZbBJcAMcXKRekkO6cPeJu9Mf2rRLBmpTSKYBSAyaUls8 7klau1sSJBw1U5UUWDdhtQ/PGWio1TOptOxgasPCcODPkSgN3rbiW0tUZdI2bcP04stW HwgE1yvmVc+2t3Pzm5eX/MrUL3MzAP5/WKssj54RTSqBBDHS9guFRk9xi0ROCmtwMKOz a/oX7oWpOVqYmQqR0YZmdAw/Xqnz9uEPrTlozXLSiuC4r8RLnldFoVItCet7GuyOXhQn DCiAkgH6mCpEtuXt0FfysK8n3ha2ffyCnI1MXQGHUucp6nAMHxTGtr+jmjW0mKNycWfB Q+QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=7dY58jIqd7Xyq0ovKUsI6oGnM7fzC8pUeG7C9V7C+Lg=; b=AylssFl5vqxgQWmuNi7WLo2Y/guwDaAxnZtyIik+BxT6BCLNZCRpMPxdh75dQhbGlc yo+UQ3V348M6+YTPOHa+9opaAZ+mGHui3sZrCcSbjUSg10smViVQxSUukVL/zEJOLiEg KgrQHqhl9eV1G4i35GQVIruZb0bWdvbYJqaIodeWTyN2IaubCVaECLY4COqdXt2LLS2W +e9np2X3ccO4FdHQELx8o5O9t2Pl97auiEsJm3YgsjSvhsHsetN2mcs9MbE9fWrBHGK7 BhG0g8jtYUuIoLQD6NF0VaoM4SnMyM40tFxJQKPoiDBcK6FZG6Jy34UsKzPSl2vBeMXm /kCQ== X-Gm-Message-State: APf1xPBwH/IntHhYt7I5ddOzuSHcyUnXtCyNNf3hhLmsZI+dTdbepsuB OsBOw0ZR/G7bbKicEsabX4nDez/NxXI= X-Google-Smtp-Source: AH8x224JEUISGBVuOALLE1RChUarX1oqhzj1gQyuPmdi1WXLGdTcA5+8kw6gh3uoJsac4Cgnp+dRNw== X-Received: by 10.101.91.78 with SMTP id y14mr8786367pgr.243.1519659789849; Mon, 26 Feb 2018 07:43:09 -0800 (PST) Received: from [192.168.222.7] (ec2-34-216-35-238.us-west-2.compute.amazonaws.com. [34.216.35.238]) by smtp.gmail.com with ESMTPSA id y124sm15862695pgb.29.2018.02.26.07.43.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Feb 2018 07:43:09 -0800 (PST) From: geoff hoffman Content-Type: multipart/alternative; boundary="Apple-Mail=_5D5C850D-0C1E-44DD-A2C0-0F4CB262BB8D" Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: Creating complex track changes database - challenge! Date: Mon, 26 Feb 2018 08:43:07 -0700 References: To: PG-General Mailing List In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3445.5.20) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_5D5C850D-0C1E-44DD-A2C0-0F4CB262BB8D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 There=E2=80=99s https://flywaydb.org/ and http://www.liquibase.org/ More: https://dbmstools.com/version-control-tools = =20 Also, if you know PHP, Laravel database migrations have worked great for = us! https://laravel.com/docs/5.6/migrations = > On Feb 26, 2018, at 3:44 AM, =C5=81ukasz Jarych = wrote: >=20 > i would like to ask you for help with track changes to my database.=20 > I am new to PosgtreeSQL but i have to learn it quickly because of my = boss.=20 >=20 > I have to: >=20 > 1. Keep all changes within table including: > -adding rows > -deleting > -editing >=20 > 2. Save table with specific state and recover specific state (so go = back to previous table versions) including comparing tables. >=20 > 3. Track all DLL and DML changes with possibility to ho back to = previous version.=20 >=20 --Apple-Mail=_5D5C850D-0C1E-44DD-A2C0-0F4CB262BB8D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Also, if you know PHP, = Laravel database migrations have worked great for us!



On Feb 26, 2018, at 3:44 AM, =C5=81ukasz Jarych <jaryszek@gmail.com> = wrote:

i = would like to ask you for help with track changes to my = database. 
I am new to PosgtreeSQL but = i have to learn it quickly because of my boss. 
I have to:
1. Keep all changes within = table including:
-adding rows
-deleting
-editing

2. Save table with specific = state and recover specific state (so go back to previous table versions) = including comparing tables.

3. Track all DLL and DML = changes with possibility to ho back to previous version. 


= --Apple-Mail=_5D5C850D-0C1E-44DD-A2C0-0F4CB262BB8D--