Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkbXH-0002Bq-2a for pgsql-general@arkaria.postgresql.org; Wed, 02 Dec 2020 23:27:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kkbXD-0003yp-4V for pgsql-general@arkaria.postgresql.org; Wed, 02 Dec 2020 23:27:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkbXC-0003yh-Qv for pgsql-general@lists.postgresql.org; Wed, 02 Dec 2020 23:27:42 +0000 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kkbX9-0006Z6-67 for pgsql-general@postgresql.org; Wed, 02 Dec 2020 23:27:41 +0000 Received: by mail-ot1-x335.google.com with SMTP id h19so81427otr.1 for ; Wed, 02 Dec 2020 15:27:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=g2FXx5v1POEmaLJK/eIu66w7N2/SAn4A4eV5b841lqw=; b=uG4++S0MuDmeSID2tj5xBXPZrEsPeL4tV26Wz5mx2Si1E+0Z37z/umLR6P8mieDBLX mYijL4QQPRnHKA/vt/gd1QKPgoHHJ2vEkvx6f5QI8krdY3QbjOoFpiI46LArY+8rc6Tc iX4Mp7c3Ahs5KnjVNhyYk2ih76k+UtvqzzYLD6VdbF3eXfq8ZKVTqJFjdqMgn0sdZIe+ gANs68DlVuIynw7CyNj+v1+oVDqCklfnzD169H2zcE6RtWxyhpT3NLguutW/uqBTmslH I4v7A8AlNS6MtBtTGxlxe5bAhP1EOrKOzl1D4SxzSjaw08scfLjRK+1xlrkGxdRNTqQN qrZw== 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-transfer-encoding:content-language; bh=g2FXx5v1POEmaLJK/eIu66w7N2/SAn4A4eV5b841lqw=; b=I4Zie5htBm/Tcf6jh+vXpLve2oOg4AglzplZYsZcDPv3uhB2scQkMu+CMETJv2/mRC P8+Nlj43C21dr5Wy3WTUJDdSmN/udZeQSou8DknrCl1k4z+fp+Ky99O5Zs7R1OQxEkpo TR5kwqmFR7OVpgToH7p3PPQyzNI0pgfiyTpcfQ0rCGv8oWQWSp1ykdsLvp2/AOXeQAH+ jHmv9y/WaxikTHzBiOv0vcLI+pXSJg0HCNAr3M2pw72g99a5ZwTppWfUqTR6my084mh/ l9eiG4Il+UuYSzbDoh1QsqOFLYkQIPOZLpRBTPE79576Di27vt/NHvIKydkANfWiGMPE N2ww== X-Gm-Message-State: AOAM5323e9klabkQ7EeeIpRC7dSL8g9OfIlK7EaHc7Zj9sG9IvFlGcgy 9PHDGfY6EAyA87QHuqRhBPbuipmyVj3VpQ== X-Google-Smtp-Source: ABdhPJxfXP1ZujSGZszOkEQ3mWi5AWVx8YRCMkpgiWfIP8P+1JozqDFQsPs/Y/YkEKqnvlMFtOZBDg== X-Received: by 2002:a9d:73cc:: with SMTP id m12mr213400otk.276.1606951658241; Wed, 02 Dec 2020 15:27:38 -0800 (PST) Received: from [192.168.1.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id u63sm16786oia.50.2020.12.02.15.27.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2020 15:27:37 -0800 (PST) To: "pgsql-general@postgresql.org >> PG-General Mailing List" From: Ron Subject: pg_dump of partitioned table not working. Message-ID: <6b713437-69e3-0383-0c5f-f2e01bd46daa@gmail.com> Date: Wed, 2 Dec 2020 17:27:36 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk What am I missing? (Specifying the whole file name because multiple versions are installed.) $ /usr/lib/postgresql/12/bin/pg_dump --version pg_dump (PostgreSQL) 12.5 (Ubuntu 12.5-1.pgdg18.04+1) postgres=# \d+ measurement                            Partitioned table "public.measurement"   Column   |  Type   | Collation | Nullable | Default | Storage | Stats target | Description -----------+---------+-----------+----------+---------+---------+--------------+-------------  city_id   | integer |           | not null |         | plain   |              |  logdate   | date    |           | not null |         | plain   |              |  peaktemp  | integer |           |          |         | plain   |              |  unitsales | integer |           |          |         | plain   |              | Partition key: RANGE (logdate) Indexes:     "measurement_pkey" PRIMARY KEY, btree (city_id, logdate) Partitions: measurement_y2019h1 FOR VALUES FROM ('2019-01-01') TO ('2019-07-01'),             measurement_y2019h2 FOR VALUES FROM ('2019-07-01') TO ('2020-01-01'),             measurement_y2020h1 FOR VALUES FROM ('2020-01-01') TO ('2020-07-01'),             measurement_y2020h2 FOR VALUES FROM ('2020-07-01') TO ('2021-01-01') postgres=# select * from measurement;  city_id |  logdate   | peaktemp | unitsales ---------+------------+----------+-----------        5 | 2019-05-03 |          |        5 | 2020-11-22 |       77 |        45        4 | 2020-11-22 |       77 |        45 (3 rows) $ /usr/lib/postgresql/12/bin/pg_dump -p5433 -d postgres -t measurement --data-only -- -- PostgreSQL database dump -- -- Dumped from database version 12.5 (Ubuntu 12.5-1.pgdg18.04+1) -- Dumped by pg_dump version 12.5 (Ubuntu 12.5-1.pgdg18.04+1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; -- -- PostgreSQL database dump complete -- -- Angular momentum makes the world go 'round.