Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pUVpM-00037z-CE for pgsql-www@arkaria.postgresql.org; Tue, 21 Feb 2023 16:49:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pUVpK-0007jG-A5 for pgsql-www@arkaria.postgresql.org; Tue, 21 Feb 2023 16:49:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pUVpK-0007j7-1R for pgsql-www@lists.postgresql.org; Tue, 21 Feb 2023 16:49:14 +0000 Received: from imap2.cmatte.me ([54.37.205.152]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pUVpD-0003rm-57 for pgsql-www@lists.postgresql.org; Tue, 21 Feb 2023 16:49:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cmatte.me; s=myselector; t=1676998145; bh=SLcHE/G6Hq5LNDNUHamAedv4RNe9k4cKL4knmi5OdkM=; h=Date:Subject:To:References:From:In-Reply-To; b=B6UpCujI3xKUqxqy5uoIRYkG/BvZHDPFQWrt5lfdZ09fx1o2hojxMaynvVwFY4V1E QC2dEWxtjpSf6fhOQnaXh0WZRBrdR9itJ76qE9yMw9ch7F4e6XEjVi8FzzbYoxdGTA n+uTg3Nt0XLhWqufcBmLc8cXm1SMFrPaY/2VxkIErAJrToaV2KJEmZ5ELRCYE8iI6L uM5f/YqgsdyVmmFnm1phwH84bEWjfXpFFCAPzWMxtmQSCnMla9+w8QBUeEUv0ohQIR z0EapcZRifi4hPCPVfiAwyTNmN+7lnpYslm7ub9LYJdsyJXoj3hSEdqUBX0FcxMf2T SBPj8vFaR62wQ== Message-ID: <026fc15f-e4f4-ae65-e314-1c59c9b69928@cmatte.me> Date: Tue, 21 Feb 2023 17:49:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCHES] pgarchives: merge schema.sql into Django's model Content-Language: en-US To: pgsql-www@lists.postgresql.org References: <12eb75f0-3fc2-14f3-0931-4f29e145f182@cmatte.me> From: =?UTF-8?Q?C=c3=a9lestin_Matte?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, I sent these patches over a year ago. Can they be reviewed? Patches I sent earlier were rejected because a full merge of the database creation process was a better approach. This series of patches does exactly that. On 07/05/2022 11:32, Célestin Matte wrote: > Hi there, > > Gentle reminder that this patch has not been reviewed and may have been forgotten > > On 03/02/2022 14:30, Célestin Matte wrote: >> As discussed in previous threads before [1, 2], database creations file are currently split between the Django model and a SQL file. Discrepancy in the database's definition exists between them. As a consequence, the database cannot be created easily. >> This series of patches merge schema.sql into Django's model, and adds specific postgres components that cannot be handled by Django's ORM using RunSQL() in a migration file. >> >> Please also note that I integrated several other patches to avoid multiple migration files: >> - I allowed message.parentid to be null, as discussed in [1]. This can cause Internal Server Errors in views.py, which are fixed by the second patch. >> - I used BinaryFields for bytea columns (message.rawtxt and attachments.attachment), which seems to be the way to integrate bytea into Django >> >> It may be a good opportunity to remove all mentions of pg_dict, pg_stop and associated file. I'm not sure of the consequences of this. According to [2], these are the remains of an aborted idea. >> Also, what does tsparer bring? Can the installation of pgarchives be simplified by replacing it with pg_catalog.english? >> >> >> [1]: https://www.postgresql.org/message-id/CABUevEyFpYPEHh0AAyTAsgymRKOOVA1SY_pDHPCbBQQ9BawfTA%40mail.gmail.com >> [2]: https://www.postgresql.org/message-id/CABUevEy_i1xAKscMv4KZ0%3DbE8050bBcQfWaNyjwZZBofZx7JgQ%40mail.gmail.com > > -- Célestin Matte