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 1fZ23b-0004Yg-V9 for pgsql-general@arkaria.postgresql.org; Fri, 29 Jun 2018 22:40:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fZ23Z-0004W0-Mi for pgsql-general@arkaria.postgresql.org; Fri, 29 Jun 2018 22:39:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fZ23Z-0004Vt-F9 for pgsql-general@lists.postgresql.org; Fri, 29 Jun 2018 22:39:57 +0000 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fZ23V-0001Ni-Pm for pgsql-general@lists.postgresql.org; Fri, 29 Jun 2018 22:39:57 +0000 Received: by mail-qt0-x242.google.com with SMTP id q12-v6so5346345qtp.6 for ; Fri, 29 Jun 2018 15:39:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=fHLu6+yjziurQ+Uzp1wjAdqe+bBykRc6Ck3wymq7l9s=; b=R0F9ojzRlz/vt2qdrMyF6AswGygb3mhPyuvZHWv3YQfuf59cgmIqzqlp+v6PeZTlNu bBc0NsN96iCrfthk7mouuB+8uuDv+WVhNNclHiLD5p/v90q/ZEw4nT+bsmLyRvQKnnID FzaPYqmCfTQJtVLRWP0N07Lc5rnimo2ciw+zfEL7HRGkmqRJ+QSvG6IaYfwxVjdY+Lze dqgiqtzVA156UU81X96NYjkYixo9KdsAeO/YJhUquKBBwPYv8qogmoD0j1rLnq7w3rfJ gggukiORxCvlJ/kw8VU8qin0XitGydE9B4rod87THY8WAcDmr7GK/1ZQ1IZRDNfWmvpT OsbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=fHLu6+yjziurQ+Uzp1wjAdqe+bBykRc6Ck3wymq7l9s=; b=qm46o2E7Ap8tgGNznLtOYwS1vDRxQzXBZc/WgaVHzHMyo4tMBu8V4l+TCY4FkiCDUT Zr+40RH/YoTyrieolZlyGNq5WwydqR74AnCPtw44O3LkqPC9vJG1Wykj7bNQngBPy9c5 9lmXjs1P+McBEJu+nQR7tWqRLFa3ZbsMrevI1uudSXpXu3YJfux+Js7DWFFa1nlULQPO esRZktLO5GlVN3BuJVQcIY1XQLlSCHHPlavyJTRJrt8zM2GtOON/uVO2yx5zNZIVYF0V 6XhLJJ6PyjkDMuvQuQWIORPTlPms5wYqp8uSeH2v5ycVPWhB6jRZRUO0a+Wlyy+8s3Eg lYzQ== X-Gm-Message-State: APt69E3HAiJn0S5HkyCsaMVjKe/BpSN4vQE8L9xHyht6niA8H20xh5Ne FFzn3fFc8B0QhiwLF6RXIptEsg== X-Google-Smtp-Source: AAOMgpfqEMTJTvjEt4DqGcTzUhuP1jVcSJwMqKSeUpRh5MTd0GaualNvh5nHUGfuN/kPdNvOISq5Xg== X-Received: by 2002:a0c:b155:: with SMTP id r21-v6mr9352712qvc.97.1530311992181; Fri, 29 Jun 2018 15:39:52 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id n24-v6sm8778267qkh.39.2018.06.29.15.39.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Jun 2018 15:39:51 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 94A3C110F; Fri, 29 Jun 2018 18:39:49 -0400 (-04) Date: Fri, 29 Jun 2018 18:39:49 -0400 From: Alvaro Herrera To: Kevin Brannen Cc: "pgsql-general@lists.postgresql.org" Subject: Re: dumping only table definitions Message-ID: <20180629223949.tdifrvvqejuqyl2i@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Jun-29, Kevin Brannen wrote: > I'm trying to figure out how to dump only the table definitions, well those and things they need directly, like sequences & types. What I do NOT want are all the millions (not literally but it feels like it :)) of functions we have. Triggers would be all right if I must, as we only have a few of those. Try "pg_dump -Fc" followed by pg_restore -l. You can edit the list emitted there, then use it with pg_restore -L. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services