Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fT9uC-0004OM-Ld for pgsql-general@arkaria.postgresql.org; Wed, 13 Jun 2018 17:50:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fT9uB-00052x-GY for pgsql-general@arkaria.postgresql.org; Wed, 13 Jun 2018 17:49:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fT9sH-0004tD-Vh for pgsql-general@lists.postgresql.org; Wed, 13 Jun 2018 17:48:03 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fT9sC-0004ez-79 for pgsql-general@postgresql.org; Wed, 13 Jun 2018 17:48:00 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 7F74321A47; Wed, 13 Jun 2018 13:47:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 13 Jun 2018 13:47:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=ZgXKdZrNyKhjNVDski+LGh2MlIwbH kIL4LCZhOKk1ig=; b=VZUGRSRXUERf9yfnNiMJ1PDOGx4Ekz82MbST8aAd6K/Dn /LhGit+49HBWH5Crh7r5/Pz/QvO11Fs2lo8tvgDwGyaHzR9e79/GWeP5FGjLkAx+ INgqxRXcEGfsk43qJ2VaVthPgT2GuZO9KVni9XZDg64DlSd4i4gwwACghTPGTnvZ bd/o2XwqSbadsAeS2RnGchcDnSqec07I8KuepCaskx4ZzbupPBGkpst7bgcHl7lR jsKXo0p9zzBRTpeEkmcFDd2TECl7xQtu0yq8FNi218hNYP5ec+iMsjCphWTQ61Na 7UHyQkNw35SngVvnZT63yEoJOzThRFoLP94MRdH9w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=ZgXKdZ rNyKhjNVDski+LGh2MlIwbHkIL4LCZhOKk1ig=; b=QZccTKQmYClAvFXM8cP/3E wdTX7aM9zukMiopA1V35WUWC55ICe8Gq5hqFtvmGQDBTLe/PHRpw4Erlx0lQSuSW hEdaC8pQQtdzVnSvImKjfaonSxZOgP6GIW2AUpFR8rbOhMrhm6jNboYn/z8eKqVt PIkha3tN7ZSg/XLHpGDFQL2MMavtBuzA/5T0bqumOdORp63Ys1pWEoFscXoxgbd+ jWBLHp2NVM64HWsd4+6sGTExu59od3wyCOEY3RJfukGg5+l1yRUNtxwRJw8i+sQq 5o2QK1+4hV6D5hlY8jRQaraZp0d+n2KxYtrw3VsKbcyO1fAcsrVnIytUTEQ7t48w == X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from ranger.suse (unknown [74.94.73.222]) by mail.messagingengine.com (Postfix) with ESMTPA id E95481025C; Wed, 13 Jun 2018 13:47:53 -0400 (EDT) Subject: Re: Using GIT to caught delta between database versions To: =?UTF-8?Q?=c5=81ukasz_Jarych?= , "pgsql-general@postgresql.org >> PG-General Mailing List" References: From: Adrian Klaver Message-ID: <6a9da52e-a8a5-469d-8a54-0737d1eed493@aklaver.com> Date: Wed, 13 Jun 2018 10:47:53 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 06/13/2018 10:42 AM, Ɓukasz Jarych wrote: > Hi Guys, > > how use git to catch delta between database versions? Use sqitch?: https://sqitch.org/ > > As version i will do schemas. > So we have version one, finishing it, and this version should be put in > GIT. > And created schema for the version. > > Which formats i should use? > > pg_dump creates only binary files? (i should use text file here). It will create text files, that is actually the default: https://www.postgresql.org/docs/10/static/app-pgdump.html -F format --format=format Selects the format of the output. format can be one of the following: p plain Output a plain-text SQL script file (the default). > > Best, > Jacek -- Adrian Klaver adrian.klaver@aklaver.com