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 1n3POz-0001Cm-JA for pgsql-general@arkaria.postgresql.org; Fri, 31 Dec 2021 21:25:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n3POy-0007HG-BD for pgsql-general@arkaria.postgresql.org; Fri, 31 Dec 2021 21:25:28 +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 1n3POx-0007H5-Su for pgsql-general@lists.postgresql.org; Fri, 31 Dec 2021 21:25:28 +0000 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n3POv-00070G-4Z for pgsql-general@lists.postgresql.org; Fri, 31 Dec 2021 21:25:27 +0000 Received: by mail-pj1-x102b.google.com with SMTP id c9-20020a17090a1d0900b001b2b54bd6c5so10145754pjd.1 for ; Fri, 31 Dec 2021 13:25:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=illuminatedcomputing-com.20210112.gappssmtp.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=cIzHxcOzOcQNT+uwZx4G402XCw+pxkndQlfU8hqFyms=; b=hRvNcp1naMhuASU1uTUIX/2Mo6Yt0OqKmtZkGJF2DDJirFQ19Jq/4yS11M2AMLqU+7 Y5mHJzIfVlmk7QOqgx2KbGxQP8QrSgQhrWtaMBPavDplDMCNtC7rYkryT8np6sD4p2uH IIHb5jrTchFmQqnJc/2jpN97OU8InqPHxfD4hMmv75dJUrq1aPPKUQ0YWC3JoUa2RTPt wet58MyRm2lX3lNEd2vg4bXj1vnwudboU4DUsUGTVm9NtueaqYpaMwIf9BMno75EFIZi 9s66KK4t2y2DAHdVRip0WdV96ymOyhma52clHTSkU4k4+qnps2Sm4Ocz34WP6Q6w/Rz/ 9qTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=cIzHxcOzOcQNT+uwZx4G402XCw+pxkndQlfU8hqFyms=; b=xDrdz2oXja+XUWHVM6WMV5z9JNwl/yIMuCa+GgEsJcm1o+QAZxIGVlMRsobmy4WXR6 UDRmUjv0/W8tK4P2ooGGv1pdu2YHwsjysS8PgZgAJDYabJygKNhMHAeClFGTtFa7uT+B tlgOnzbWX1ZtfnVYdfRHK3BJN95pT7XLN6gqwKZLl03fkYIc2QBJ26FhsX2/SeylTY7R GwhfFF8gQkLB+7gZo0e6BQyZ1UobOKX+Xy9D9LXRh04mYSdB57jrqkj4djQ5IGthSFv8 SjIPz1/Haz9Gik7MAzNy2DX++vS0ENsaGYt0oQUn9waWSGerFYxfPImdXTiuvCeQmVZp s74A== X-Gm-Message-State: AOAM530h0x0gtOfJzYCCQ+h1FoUOmWFjFPeBZ2UOqRV0KTjbWfFymPuM gm4aEqmPSLe+QO7j/nN4r3M0vc0CNQcqgg== X-Google-Smtp-Source: ABdhPJy1aRjEw0ufhlUmVogHZx+ljwIfYImqDhYEKf/Bw1A8/VrfCdPoyg5qxrOBlA7LOnrLWAzruA== X-Received: by 2002:a17:902:8c83:b0:149:8ef6:b2ff with SMTP id t3-20020a1709028c8300b001498ef6b2ffmr19235719plo.32.1640985921863; Fri, 31 Dec 2021 13:25:21 -0800 (PST) Received: from [192.168.2.139] ([50.53.98.191]) by smtp.googlemail.com with ESMTPSA id n13sm21922907pfa.197.2021.12.31.13.25.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 Dec 2021 13:25:21 -0800 (PST) Subject: Re: a very naive question about table names in Postgres To: pgsql-general@lists.postgresql.org References: From: Paul Jungwirth Message-ID: Date: Fri, 31 Dec 2021 13:25:20 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/31/21 12:27 PM, Martin Mueller wrote: > I know that on my Mac the tables are  kept in the  data directory > /Users/martinmueller/Library/Application Support/Postgres/var-13.  If I > go there I see that internally the tables have numbers.  Somewhere in > the system there must be a table that maps the name I gave to table X > to the numerical  inside the database. > > Where is that mapping and how can I query it?  On what page of the > documentation do I find the answer? Dear Prof. Mueller, This question strikes Postgres people a bit like your teenager asking where you keep the tallest ladder. There aren't many practical uses for accessing these files directly, and if you do it's likely to break your database. Could you speak a bit more about your goal here? Perhaps someone can suggest a good way to achieve it. Yours, -- Paul ~{:-) pj@illuminatedcomputing.com