Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJOPz-0008W0-LA for pgsql-general@arkaria.postgresql.org; Wed, 24 Apr 2019 20:22:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hJOPy-0007pX-CE for pgsql-general@arkaria.postgresql.org; Wed, 24 Apr 2019 20:22:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJOPx-0007pB-S6 for pgsql-general@lists.postgresql.org; Wed, 24 Apr 2019 20:22:58 +0000 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJOPv-0005Th-Ep for pgsql-general@lists.postgresql.org; Wed, 24 Apr 2019 20:22:56 +0000 Received: by mail-oi1-x231.google.com with SMTP id n187so15394000oih.6 for ; Wed, 24 Apr 2019 13:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=RKqzeZrQ4Bik9oY2O5kr5O6I7A8xB/UxotSqv3CAeck=; b=H6Kss+W5T9wJ940B/hf9zz3h2XiudktWvMPM280karHZH/LVzp4JRGzHFdFzpxNdMJ hpKZyaGZiItPpdNqPINfsS5DFkQn0XaHTbGYfcfZpyg5H/18SgAIRY0GQlUtjIdypI6z rtfEwpYLqbMDb3v5QO0YG76I9aKr4GFui3u3Zy4LhxqCak+SM+sYxp6fs4a02kNm6n/u xPIVzBnW4eZLmwIn5Hio9dyVm9HI/84jzS7lew75/4f2VDE/2iSsUthbNxwQuyXGmqEs +Adzx0AOSc66vZoaeWoDIrsRMquHiOtzvox1NOkz97EP5uRs8XSzGAvbj3kROSQh8ZXG oAUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=RKqzeZrQ4Bik9oY2O5kr5O6I7A8xB/UxotSqv3CAeck=; b=Nas/zZFoPt+/XQ3n5ca0OrwUmsVvWe6iCINsfFO2mR2mgH6Y8YFQ0B8AAW2m3vwyTQ VMeEe+mK8WdoPCPnG9vPsIBMdhngQHp9ms6+xmMg3XQwtqLwP1nimQ7osrlSmqLExbt6 5+flFz5XEbutsUVvOKYDmYVo3jmpDhF2rrl0zjcgC/uYorUUJ9Yji1c1SIim8st/r2c5 9xChgt9VXwEydRUidh0RrIGumMjKeTFOLC+EI1dOg5Jp3iXk5VyZfLhLKHgKWOpyTiqU YAGhtX+MlrvImU0GRugHxiVftFWKOszuLQ4U68pwSFR27UPne84XEMYdipegfm8GZllU 1ZYw== X-Gm-Message-State: APjAAAVYGbjhFSf4zosm0Z0SuYeLlo9O3n+o2B873f6w2cshP4X0otTn Aj/8TK9VzQERKfgActQdEZRPOYwFCVk= X-Google-Smtp-Source: APXvYqyOH+6gSEcVY+47WNQRPrQaN4T3jCIJQZrfFp721E3cNMMa1kLP9v0kub6hYKQAflYWcPm9xw== X-Received: by 2002:aca:3d8a:: with SMTP id k132mr695974oia.63.1556137374491; Wed, 24 Apr 2019 13:22:54 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id c125sm8362228oia.56.2019.04.24.13.22.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 13:22:53 -0700 (PDT) Subject: Re: how to add more than 1600 columns in a table? To: "pgsql-generallists.postgresql.org" References: From: Ron Message-ID: <1bc29b08-1905-8c0e-5301-023ff134051e@gmail.com> Date: Wed, 24 Apr 2019 15:22:52 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/24/19 3:17 PM, pabloa98 wrote: > Hello > > Sadly today we hit the 1600 columns limit of Postgresql 11. > > How could we add more columns? > > Note: Tables are OK. We truly have 2400 columns now. Each column > represents a value in a matrix. > > We have millions of rows so I would prefer not to transpose each row to > (x, y, column_value) triplets because it will make all our code more > difficult of what it is. > > Any help, very appreciated. Is a relational database the proper tool for the job? -- Angular momentum makes the world go 'round.