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 1fNp6I-0008RU-R2 for pgsql-general@arkaria.postgresql.org; Wed, 30 May 2018 00:36:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fNp6E-0000r1-FQ for pgsql-general@arkaria.postgresql.org; Wed, 30 May 2018 00:36:22 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fNp6E-0000qs-2e for pgsql-general@lists.postgresql.org; Wed, 30 May 2018 00:36:22 +0000 Received: from mail-pg0-x22e.google.com ([2607:f8b0:400e:c05::22e]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fNp6B-0004L2-5u for pgsql-general@lists.postgresql.org; Wed, 30 May 2018 00:36:20 +0000 Received: by mail-pg0-x22e.google.com with SMTP id m5-v6so2942666pgd.3 for ; Tue, 29 May 2018 17:36:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=EbM5KvqnpIb7cFcJ+kuZQ0PZRZOaWBtI4Q2E/QzVLy4=; b=mrjzQM74pBn4+9pem9j3fApf37ZxETwIvq9HTs2wwzNh0De/Vp2wg7e7YigTuem/CX YpQ/KnncAeLzXyKFG5atvgjxfB6PoHMLQBvkXazSbGaE+uT08qcdjb7NPUDXOYYXvTrZ END9c8pb/82z71pgTA3Q0PPTxXS7uaJCAygHJnYrFZysRSxtgsCBOLlXDrv1YTcMSfM0 cxBTetF5w0u0FrsQyQc+CNKhFS1GRswBTTxLSuUKCxHBYXRxA61UdYezCb2f/8hyLeXR 5AszdN44GLNTZ/OF/dFmChidW2BnM0gNkfwHBDc8m0+bp0G3hO+gHTOx7I4fygIuhjcE s0Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=EbM5KvqnpIb7cFcJ+kuZQ0PZRZOaWBtI4Q2E/QzVLy4=; b=jYYsXDMdiZ4AxA/hYUq6pw1iigLKXAiWy4L7H5e+JLhUBwZF5InrXHr+hX6h8mltf/ 1JYNkQRbVN3TE0i0S3TaXpx6pwVqjGPIs1rMxAE0hF2RqGHQ5e8adepEjQoY1yrxTtxd BHLzlsEFNirsXRVlfGxbogOH4Oq0ph+AC5VeH1001qYjXWklv0drFQVPu8ougY+OnFAH gGZj1Lvtjif5oEJJXVuDeCATz7qfyB5MaLLsi/rEbIQc9Qw+6JuPkkYyyjoZaqZ36/cy gsTsqmpIBwhV2P5BvdiFH9fjIXnNrmb+XuqrktEu4uYAhINw0CHujWUdmAGBsUXr67zs BvEQ== X-Gm-Message-State: ALKqPwcKr0NsDuXz9V9rh1P31nDrQJy21whLMIvnCNVoF6Uqr8d+aoEA R/VBJY+Y2Mp5xnxX3Svf+Usl/iik X-Google-Smtp-Source: ADUXVKJqllYlW8KXJOc4Buwnn7wfnKYAb8/be57MKTWrkrB9G4oQGANcVg7mM4UAJfyKe1u4613Vrw== X-Received: by 2002:aa7:83c7:: with SMTP id j7-v6mr595132pfn.50.1527640577719; Tue, 29 May 2018 17:36:17 -0700 (PDT) Received: from kitselas.hci.utah.edu ([155.100.47.4]) by smtp.gmail.com with ESMTPSA id d22-v6sm26739472pfk.126.2018.05.29.17.36.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 17:36:17 -0700 (PDT) From: Rob Sargent Message-Id: <678DB604-B589-4875-8F49-16A75F735BF3@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_9FC517B8-FB3C-46AC-9109-5572BD751061" Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: reduce number of multiple values to be inserted Date: Tue, 29 May 2018 18:36:16 -0600 In-Reply-To: Cc: "pgsql-generallists.postgresql.org" To: tango ward References: <0478A9B3-9186-45FA-A9B0-303CEBD795C7@gmail.com> X-Mailer: Apple Mail (2.3445.6.18) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_9FC517B8-FB3C-46AC-9109-5572BD751061 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On May 29, 2018, at 6:32 PM, tango ward wrote: >=20 > On Wed, May 30, 2018 at 8:29 AM, Rob Sargent > wrote: >=20 > Is =E2=80=9Ccurrent_timezone, current_timezone=E2=80=9D just a typo? = I think you need to make the 117 data lines and load using \copy >=20 >=20 >=20 > Sorry, yeah, it's current_timestamp. =20 >=20 David and I are suggesting the same thing. You have 117 unique student = definitions so you need to explicitly define each of them. That can be = in your python code or in a file your python code reads in and generates = inserts or simply a psql script which reads the file using \copy = tablename from file. =20= --Apple-Mail=_9FC517B8-FB3C-46AC-9109-5572BD751061 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On May 29, 2018, at 6:32 PM, tango ward <tangoward15@gmail.com> wrote:

On Wed, May 30, 2018 at 8:29 AM, Rob Sargent <robjsargent@gmail.com> wrote:

Is =E2=80=9Ccurrent_timezone, current_timezone=E2=80=9D just = a typo?  I think you need to make the 117 data lines and load using = \copy



Sorry, yeah, it's = current_timestamp. 


David and I are = suggesting the same thing.  You have 117 unique student definitions = so you need to explicitly define each of them. That can be in your = python code or in a file your python code reads in and generates inserts = or simply a psql script which reads the file using \copy tablename from = file.  
= --Apple-Mail=_9FC517B8-FB3C-46AC-9109-5572BD751061--