pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: derek <jmorgan3@uwf.edu>
To: pgsql-general@lists.postgresql.org
Subject: CREATE TABLE AS SELECT hangs
Date: Mon, 1 Oct 2018 13:35:43 -0500
Message-ID: <b784c00b-e716-acd5-4674-ffe12ba49b93@uwf.edu> (raw)

Hello,

I am trying to populate/create a database with CREATE TABLE AS SELECT 
like so:

    CREATE TABLE test_table AS
    SELECT row_number() over() as gid, cells.geom
    FROM test_geom_function(1,2,3) AS cells;

This works on one database instance, but not on another. On the database 
it doesn't work on it seems to hang on executing and when I cancel it I get

    ERROR:  canceling statement due to user request
    CONTEXT:  while inserting index tuple (6,13) in relation
    "pg_type_typname_nsp_index"
    SQL state: 57014

Any help/suggestions would be greatly appreciated.  I am running 
PostgreSQL 9.6 with PostGIS also for some spatial functionality.

Thanks,

Derek

view thread (3+ messages)  latest in thread

Message-ID: <b784c00b-e716-acd5-4674-ffe12ba49b93@uwf.edu>
Permalink:  ../b784c00b-e716-acd5-4674-ffe12ba49b93@uwf.edu/
Also on:    postgresql.org/message-id/b784c00b-e716-acd5-4674-ffe12ba49b93@uwf.edu

 · 

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: jmorgan3@uwf.edu
  Subject: Re: CREATE TABLE AS SELECT hangs
  In-Reply-To: <b784c00b-e716-acd5-4674-ffe12ba49b93@uwf.edu>
  References: <b784c00b-e716-acd5-4674-ffe12ba49b93@uwf.edu>

* 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