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 1gEdvM-0001qM-Qw for pgsql-bugs@arkaria.postgresql.org; Mon, 22 Oct 2018 17:23:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gEdvK-0005th-Pv for pgsql-bugs@arkaria.postgresql.org; Mon, 22 Oct 2018 17:23:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gEdvK-0005tV-Gb for pgsql-bugs@lists.postgresql.org; Mon, 22 Oct 2018 17:23:26 +0000 Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gEdvH-00067I-QX for pgsql-bugs@lists.postgresql.org; Mon, 22 Oct 2018 17:23:25 +0000 Received: by mail-qt1-x836.google.com with SMTP id g10-v6so6576443qtq.6 for ; Mon, 22 Oct 2018 10:23:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=Lxc98Sz8Qb+LQhZTwpHNmL3cNzf4pqWXbz9Cbsx36kw=; b=YE2QecXT/STZb7pseeYFvmrCRW6nYul2HCZnAn1NJaQ4TeDPQGGBdZvbvG3Xcwp6yx GhKfkSc14UFRwHzoOKGsLIxzj6cBpIMuOkLfAWNsW5zjPf/klizVA6v0BdFRV1olICkZ JGz+C6/UZxsq8NDyeEpYahCAyt2yCfUJMV6WADDM/zASCEVIxqBlLzi+jQXzGuWaT6IJ tlL9s5rm6bZmGsiVy1+BXN2Be7muffXfYp3JGM8IQVLOGeJFjCyV9G1xmYby/9WqP/gO qa7mvmCs5hdqFyebQph0HNN2e+LYVzuIpnyRb/eaiCnX72290MFM8X5TtAqf2+DsqyHE uC3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Lxc98Sz8Qb+LQhZTwpHNmL3cNzf4pqWXbz9Cbsx36kw=; b=cQKDvOWcVdpSJ6YTTyBGzjCPHP04LNZ5WLXtetXQXrIgZEo7m8zoZPx0UUU7uVZHtk aw7eMTTfttDZJoM4oQ3VtzfNC+v1qQt3nBIaSR+U3c7oQNgiFUTZmat96lbDfOpVWwXW 0t3uH+spuuUpPPXiVNRNzaon2NUcNhT4qHzOAsSHan8u2h1s64kXU5zmDfaBYs/SYLtf /ZrYbFLCA3lOJlbu/O0ILvjukvoQA+bq7u8WDEVRbGla2d89wu7Wg2ISE91MDIJtT8J/ TyXJSREjl8j03suZFEtz8/guTLtzQtsPCU+MTAVgcMeIZTAO0WgsX10RmegA537EtyNU tOPA== X-Gm-Message-State: AGRZ1gK2WjETq9U2jxAYNSHgZI/lx44SGAWU/shC5QkM0qA5CULg+Ece +uKskxPf1+yBIjK/ukyMi7HiTw== X-Google-Smtp-Source: AJdET5dM40I+GeFMn4tvwDbVQNGaJ3OyAbA60py1Kpu3Braw5qc3ljJKEa192ka5LUJdnMGmtBkoZQ== X-Received: by 2002:ad4:514d:: with SMTP id g13mr5561889qvq.239.1540229002929; Mon, 22 Oct 2018 10:23:22 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id x40-v6sm7155923qtj.45.2018.10.22.10.23.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 10:23:22 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 76C3E640; Mon, 22 Oct 2018 14:23:20 -0300 (-03) Date: Mon, 22 Oct 2018 14:23:20 -0300 From: Alvaro Herrera To: Dmitry Molotkov Cc: andres@anarazel.de, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15446: Crash on ALTER TABLE Message-ID: <20181022172320.fnau5hxotyobk2st@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Oct-20, Dmitry Molotkov wrote: > Reproduce is easy if you can install python 3. > Here is empty django project that will reproduce it > https://www.dropbox.com/s/4rw2dlzxvxxb5xf/djangotestpgbug.zip?dl=0 > install requirements from requirements file. > in djangotestpgbug\settings.py - set postgres user/password/database. > python manage.py migrate - it will run migration and it will crash > postgres:latest from docker. Didnt tried without docker. But i dont think > docker has anything to do with it. > > Here is failing migration > https://github.com/fabiocaccamo/django-admin-interface/blob/master/admin_interface/migrations/0008_change_related_modal_background_opacity_type.py I think the easiest is to turn DDL logging in the server (log_statement=ddl) and then report exactly what is being sent to the server, then see if you can construct a reproducer SQL script based on that. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services