pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: tango ward <tangoward15@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: reduce number of multiple values to be inserted
Date: Tue, 29 May 2018 18:36:16 -0600
Message-ID: <678DB604-B589-4875-8F49-16A75F735BF3@gmail.com> (raw)
In-Reply-To: <CAA6wQLJ-iWFHRPQYXdxdkoYB+9Z3SdoanBHsg-PDjMVu0bnjUw@mail.gmail.com>
References: <CAA6wQLLRSCkVrxmo23pc1sbyW0rr5SQX8bTfMXA3WpgmH=48rQ@mail.gmail.com>
	<0478A9B3-9186-45FA-A9B0-303CEBD795C7@gmail.com>
	<CAA6wQLJ-iWFHRPQYXdxdkoYB+9Z3SdoanBHsg-PDjMVu0bnjUw@mail.gmail.com>



> 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 <mailto:robjsargent@gmail.com>> wrote:
> 
> Is “current_timezone, current_timezone” 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.  =

view thread (10+ messages)  latest in thread

Message-ID: <678DB604-B589-4875-8F49-16A75F735BF3@gmail.com>
Permalink:  ../678DB604-B589-4875-8F49-16A75F735BF3@gmail.com/
Also on:    postgresql.org/message-id/678DB604-B589-4875-8F49-16A75F735BF3@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: robjsargent@gmail.com, tangoward15@gmail.com
  Subject: Re: reduce number of multiple values to be inserted
  In-Reply-To: <678DB604-B589-4875-8F49-16A75F735BF3@gmail.com>
  References: <CAA6wQLLRSCkVrxmo23pc1sbyW0rr5SQX8bTfMXA3WpgmH=48rQ@mail.gmail.com> <0478A9B3-9186-45FA-A9B0-303CEBD795C7@gmail.com> <CAA6wQLJ-iWFHRPQYXdxdkoYB+9Z3SdoanBHsg-PDjMVu0bnjUw@mail.gmail.com> <678DB604-B589-4875-8F49-16A75F735BF3@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox