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 1kkcFC-0003vW-D0 for pgsql-general@arkaria.postgresql.org; Thu, 03 Dec 2020 00:13:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kkcFB-0003bj-Bn for pgsql-general@arkaria.postgresql.org; Thu, 03 Dec 2020 00:13:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkcFB-0003bb-0y for pgsql-general@lists.postgresql.org; Thu, 03 Dec 2020 00:13:09 +0000 Received: from mail-ot1-x342.google.com ([2607:f8b0:4864:20::342]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kkcF8-000866-1c for pgsql-general@postgresql.org; Thu, 03 Dec 2020 00:13:08 +0000 Received: by mail-ot1-x342.google.com with SMTP id t18so168248otk.2 for ; Wed, 02 Dec 2020 16:13:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=q5KehwsXBnaIR9iUQoYvlP1ACEQJm8ObrJsAN9wf05E=; b=PCAD8+gahqqzdYJnQsxx13tdicG4tenLpYbyJEUNeDbdS9vS4aFPsLn3mRZYfbUXrg 9x73hOF9FmZDv3m4yInpuGgpykQi2TW306d8p9aWzuWCOW2nLfUBO8lvzAtfc9F4lXm3 OBSZi6e2WKxPQWXGeTB8lm/juWYm3cP18kUd4sFtK2IeqERhbodoafGz7/T682XpUFli MU+vqXR/n+sWLyyGLGQBT812JJfaFfSMQAlo+6D81hO6K36+s6MrwytyAbpF7C1idg+w 9v5EvxOx9idM4+Kz7DWHNXKl83G1btcD9X9KGDexvg77V91Kc1NQvPtKms57GDw+IaJP VrgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=q5KehwsXBnaIR9iUQoYvlP1ACEQJm8ObrJsAN9wf05E=; b=HyTroL2WQqaOK4sK2zfa+mNqf4Wb0GgohOz1vQ9g0a1s3axe7kbiivzfKGcNo2fEPD 90voXP00LBaUDOg6FXgkx8fh5v5MU3iLf2zugxhM8EAilvlQ2z4EROC19sQ9pp0NsShD OGl3YvJ4NKqlEDJnrHdZZr7q5BV9WQfg4lYk427QKfta9VLNby6c5/7HcSe8fcyuXJ35 hl2bxTdSbCXIzKnK8JgGowSDSyMtx+YyQ3iD7U99f23T9M7tzxY6q8xWvpa7AtaApKBc UrG6WX1rd04yDcMYlsd7MmFGOnfmD1X2jTPG/7kFZPYMsNgNx6YIk1TOrcAvx/RBPivw lTFA== X-Gm-Message-State: AOAM532VjZti8iLzkChl9dO0+ZWnC3dK8VakATY2LfL9JXXpfvEqep3r SiNwhkTjbgfUEWCbmJzOs6ipKUXUNPgnrA== X-Google-Smtp-Source: ABdhPJzK6Fy6eNxeFQseqyqBItk62H95hP/d+he6YvsvnATnE0GuuC7/LTMxZ+/9Xa+1ulWlCf8Z/g== X-Received: by 2002:a9d:6207:: with SMTP id g7mr349347otj.22.1606954383849; Wed, 02 Dec 2020 16:13:03 -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 k63sm54075oia.14.2020.12.02.16.13.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2020 16:13:03 -0800 (PST) Subject: Re: pg_dump of partitioned table not working. To: "pgsql-general@postgresql.org >> PG-General Mailing List" References: <6b713437-69e3-0383-0c5f-f2e01bd46daa@gmail.com> From: Ron Message-ID: <59ed92cc-f841-d79e-1b00-9e84f4eeafc7@gmail.com> Date: Wed, 2 Dec 2020 18:13:02 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------49778650ECB1DF36338C0B01" 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. --------------49778650ECB1DF36338C0B01 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 12/2/20 6:08 PM, David G. Johnston wrote: > On Wed, Dec 2, 2020 at 5:06 PM Ron > wrote: > > On 12/2/20 5:35 PM, David G. Johnston wrote: >> On Wednesday, December 2, 2020, Ron > > wrote: >> >> 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 >> >> >> psql? on (default) port 5432 >> >> >> $ /usr/lib/postgresql/12/bin/pg_dump -p5433 -d postgres -t >> measurement --data-only >> >> >>  pg_dump on port 5433 >> >> Usually different ports means different clusters > > That's right.  What's your point? > > > That you were comparing apples and oranges - specifically that the > database you were dumping was empty but the one you were checking was not. > While I could have shown the exact psql commands (/usr/lib/postgresql/12/bin/psql -p5433) it wasn't necessary. I know that was the command, because I use a set of aliases: alias pgdump12='/usr/lib/postgresql/12/bin/pg_dump -p5433' alias pgdump96='/usr/lib/postgresql/9.6/bin/pg_dump -p5432' alias pgrestore12='/usr/lib/postgresql/12/bin/pg_restore -p5433' alias pgrestore96='/usr/lib/postgresql/9.6/bin/pg_restore -p5432' alias psql12='/usr/lib/postgresql/12/bin/psql -p5433' alias psql96='/usr/lib/postgresql/9.6/bin/psql -p5432' -- Angular momentum makes the world go 'round. --------------49778650ECB1DF36338C0B01 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 12/2/20 6:08 PM, David G. Johnston wrote:
On Wed, Dec 2, 2020 at 5:06 PM Ron <ronljohnsonjr@gmail.com> wrote:
On 12/2/20 5:35 PM, David G. Johnston wrote:
On Wednesday, December 2, 2020, Ron <ronljohnsonjr@gmail.com> wrote:
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
                          

psql? on (default) port 5432 


 
$ /usr/lib/postgresql/12/bin/pg_dump -p5433 -d postgres -t measurement --data-only


 pg_dump on port 5433

Usually different ports means different clusters

That's right.  What's your point?


That you were comparing apples and oranges - specifically that the database you were dumping was empty but the one you were checking was not.


While I could have shown the exact psql commands (/usr/lib/postgresql/12/bin/psql -p5433) it wasn't necessary.

I know that was the command, because I use a set of aliases:

alias pgdump12='/usr/lib/postgresql/12/bin/pg_dump -p5433'
alias pgdump96='/usr/lib/postgresql/9.6/bin/pg_dump -p5432'
alias pgrestore12='/usr/lib/postgresql/12/bin/pg_restore -p5433'
alias pgrestore96='/usr/lib/postgresql/9.6/bin/pg_restore -p5432'
alias psql12='/usr/lib/postgresql/12/bin/psql -p5433'
alias psql96='/usr/lib/postgresql/9.6/bin/psql -p5432'

--
Angular momentum makes the world go 'round.
--------------49778650ECB1DF36338C0B01--