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 1g73F7-0008Jw-3Z for pgsql-general@arkaria.postgresql.org; Mon, 01 Oct 2018 18:48:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g73F3-0001QD-QU for pgsql-general@arkaria.postgresql.org; Mon, 01 Oct 2018 18:48:25 +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 1g732r-0007Gg-0K for pgsql-general@lists.postgresql.org; Mon, 01 Oct 2018 18:35:49 +0000 Received: from mail-yb1-xb2a.google.com ([2607:f8b0:4864:20::b2a]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g732n-0002Wo-UM for pgsql-general@lists.postgresql.org; Mon, 01 Oct 2018 18:35:47 +0000 Received: by mail-yb1-xb2a.google.com with SMTP id c4-v6so6033702ybl.6 for ; Mon, 01 Oct 2018 11:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uwf-edu.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=Jm9wni7h/8N/fwpuQD0neWHmcxBIdIK8YwThcPU+85g=; b=hd4af/yDA0+iNjeTvarjJ4dutWIZCsHMCyLLs8jmC2OCccszwSR/LySUUVBEDGeEHo O7ckfSnyRWFULWW3ZAQYLiWogfK4RTsX7HnE/ZkONkJhRkTRF5wOK08N6RhP1i4vEzlr aQfLyIzUjP820wsIK9dfTfn3/OOoDGcn+kt2alT5TZLw87q/UBsVZokoQlNdWspmUX5g LKtusnOzrevNSNnFRqIg0uWuvxB7KqGdtjkL3zhn6b/xUJrrZ8l7mADl5dVq4sCwlDQ5 HYKJeH8AJtDjyTGpHkWoBIGc6afl3zMghWhuTKS6fLzaPg/pNIjfti9Fim1mUhPXuOEx HXAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=Jm9wni7h/8N/fwpuQD0neWHmcxBIdIK8YwThcPU+85g=; b=EKoi1fb9sRcWE/tSEhtvW6ybzVgLMeWfbsn+Kfjji4w4auPMqP35aF7kliB8aJ6Vh/ 8Fu8MuiaudL2fRTMD3B85/idYkFuuD+8nPeQPV7auAjueyh0eQ+41Ya2ocOSIYEh93ds pSDoWEUZJbzXdrkXHkJ4az3BFBrk7lkbXHVhlRu8Gt9RzkkNWn6pxLOUold0sNv9My5i ju4fe7OHoWiLpFe6wIsDbWc1ViNd8QZWuVTEebWqa7m4foIlv+lFYtIZGbn/Nz0VqLx1 0T8fOy/cPedKK45kEAglV4R4b8ypvnuy+6xqNASuyIQRy/UbpI/tx4PPnram1vorcM3g ePPA== X-Gm-Message-State: ABuFfohzxai9KHbSxjpnMWUufY6Uv4jfa4rmlpni6MSjlroHP1UUY/uK 8daNbMLByA0pPoyUrEGq47NVGcyntC4= X-Google-Smtp-Source: ACcGV60TSPliTOkoIfo+GmSR6BWAmBkuuqQ+fdJHmXJVW5Ig2YOoS1PgcJeNNnP/44SeWdwRP7V4NQ== X-Received: by 2002:a25:1f54:: with SMTP id f81-v6mr6480961ybf.164.1538418944581; Mon, 01 Oct 2018 11:35:44 -0700 (PDT) Received: from ?IPv6:2604:2d80:8419:8a9b:a54a:d0fd:92f9:1195? ([2604:2d80:8419:8a9b:a54a:d0fd:92f9:1195]) by smtp.gmail.com with ESMTPSA id o131-v6sm2710376ywb.107.2018.10.01.11.35.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 11:35:43 -0700 (PDT) To: pgsql-general@lists.postgresql.org From: derek Subject: CREATE TABLE AS SELECT hangs Message-ID: Date: Mon, 1 Oct 2018 13:35:43 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------86E1540D6948035D22C71499" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------86E1540D6948035D22C71499 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------86E1540D6948035D22C71499 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

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


  


--------------86E1540D6948035D22C71499--