Re: reduce number of multiple values to be inserted

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: tango ward <tangoward15(at)gmail(dot)com>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: reduce number of multiple values to be inserted
Date: 2018-05-30 00:36:16
Message-ID: 678DB604-B589-4875-8F49-16A75F735BF3@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On May 29, 2018, at 6:32 PM, tango ward <tangoward15(at)gmail(dot)com> wrote:
>
> On Wed, May 30, 2018 at 8:29 AM, Rob Sargent <robjsargent(at)gmail(dot)com <mailto:robjsargent(at)gmail(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2018-05-30 00:36:47 Re: reduce number of multiple values to be inserted
Previous Message tango ward 2018-05-30 00:32:16 Re: reduce number of multiple values to be inserted