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 1gIA6E-0004Bo-2C for pgsql-admin@arkaria.postgresql.org; Thu, 01 Nov 2018 10:21:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gIA6C-0005qf-9W for pgsql-admin@arkaria.postgresql.org; Thu, 01 Nov 2018 10:21:12 +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 1gIA6B-0005qY-WB for pgsql-admin@lists.postgresql.org; Thu, 01 Nov 2018 10:21:12 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gIA65-00048t-UW for pgsql-admin@lists.postgresql.org; Thu, 01 Nov 2018 10:21:11 +0000 Received: by mail-lf1-x129.google.com with SMTP id u18so13801407lff.10 for ; Thu, 01 Nov 2018 03:21:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=0Cm9RRRJWa91DPWoDMJ0ANoNVYVW/z1KVT5WscVCcpw=; b=bQQ2dFoMvzz61riGL82Uo8L3wDSra5tWUE5NO7QrAG78bxvwzCvhe4SvCm+qruh20D 5ULYESCYtpeVUgIEPb4PT0XWYBYb4UGhIrAtr0LVbHkLc/4bLrITsiJLxgQM3GeotJ11 vZFog5yrLbKVpSAXuElgGyRMoDw3d/nZzC/G7i/+uX1H8Phrhui6bAfY+Ta/knAC/ozm LVuOWR4L7ICndkN/Qxr+mmU8XN13Ml5L76Wr8aMWbNUm5ejn1dMyDtIyESsdAFpzRhgH r3EesrIh7Ly+4ZFTf0KCiEPLdJe87TbtQApsXqc9HRNxN1EKMnR8Hcxv2BP2LLMnYs0/ 0/PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0Cm9RRRJWa91DPWoDMJ0ANoNVYVW/z1KVT5WscVCcpw=; b=IR5lL6xn+XT5AjxhJqorqgdX2uE7zaJje/1YVeDGLDp+x4C42TtYOCSXkWSiNIeQNW IW2WcYOwf4dPCyFpczsCi1v/CHePQr/90Kz8AP5vifqZukPgtxz1skE5bk2RqbwHD28h kq0Fqc/gtOjGyCu15SlK7BHjoYxM6V9GDcs1leZwtsP3/YL7JO6B2w3y6K5IR2CV5i9L UsrqX31qG2EIKZ2VxOfegtlAcsG3X+OioH0WD9Y53e4CBBokt5z92fG+STbbAXIFA9DU +8OJieL2RfZc7622Zy1leah63mZ54EP5Df2VcA+BiV0jEAVONCvgHey/2edrXJtGXUaz NoMA== X-Gm-Message-State: AGRZ1gJhIstKfNgJMVRqCRdL1KYGcP0Zb4+qZ53rgIRYKwc35id7ug7h 0LM+qkm5/0HCedq+4WwpKRqC/r1z4x3bV9lMSP59JSO1 X-Google-Smtp-Source: AJdET5d07qsh9qANqLYTvlxPHwK19KxyQCpqdqcW+KmCtEtQhDVL20NA8RPz3XS7cxG7x0vUvDt1WCYwJhRpfdOuoUQ= X-Received: by 2002:a19:288c:: with SMTP id o134-v6mr4291539lfo.124.1541067664315; Thu, 01 Nov 2018 03:21:04 -0700 (PDT) MIME-Version: 1.0 From: Mariel Cherkassky Date: Thu, 1 Nov 2018 12:20:52 +0200 Message-ID: Subject: change bigint column to int To: pgsql-admin@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000b4d9c9057997c686" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000b4d9c9057997c686 Content-Type: text/plain; charset="UTF-8" Hi, I want to change the column type from bigint to int to save space. By doing so, does it include some risks ? As I see it, I should only run vacuum full afterwards if I want to return space to the os right ? --000000000000b4d9c9057997c686 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I want to change the column type from bigint to int to= save space. By doing so, does it include some risks ? As I see it, I shoul= d only run vacuum full afterwards if I want to return space to the os right= ?

--000000000000b4d9c9057997c686--