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 1jWwd0-0002oJ-RL for pgsql-general@arkaria.postgresql.org; Fri, 08 May 2020 06:36:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jWwcz-00042L-Jr for pgsql-general@arkaria.postgresql.org; Fri, 08 May 2020 06:36:57 +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 1jWwcz-00042E-CD for pgsql-general@lists.postgresql.org; Fri, 08 May 2020 06:36:57 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jWwcv-0003Bk-Uz for pgsql-general@lists.postgresql.org; Fri, 08 May 2020 06:36:56 +0000 Received: by mail-wr1-x429.google.com with SMTP id z8so518755wrw.3 for ; Thu, 07 May 2020 23:36:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=gF0j162+0TU7PI3W5XAYdmkXaNb1lJySZPTR02/ldEs=; b=QCKK7SJjCK9VWwKp+W8WS2HpO0f/qaG42n2ZwJfKXGRU1Ba51tIxkvt+pjJocNc84O MBo1FkZITFcKbvMvIPHCrG1HVU5sdbryrGw9US3FpiPh/m6QB64WIOKPf2/WGf6GynAn jwpijc9XVCukc3ak2IbzxT4h794+N+HIkGitMgmyLQd3cnCq/kaazlwSVRxzu+LHFbD5 IOBFX75hkHXsQ5+feh2qUcgBlVoOIX7Ydu0N+HhTD/zQOvAmySCceJeIxliu2Hwn7JjV +lqxQFLXRhuixj82KFsinsglfKS4RZIZXWgCoIdMmVwsna4rt6qT5A3zT/M2rWSqgor7 C7hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=gF0j162+0TU7PI3W5XAYdmkXaNb1lJySZPTR02/ldEs=; b=MLrRbFbQGoiWK5HA9rQjl+ni4O9dzvCf7hiYRsAxMXDI46iv69mkXQn+GysWUwQFjo 3Pcjd1ruo+GccGKZPvjNHEttIbqYMMezVUAhjx5p98UtKDx2MAO5fKY9L6wkVsMYrrwz 7niQjdIBEuqwnjrMRbsD+cLdnKaSqSPCMI/ZXAWmmQk+1BUwsomyvfNomYljLX2sTFYu agveJw0Rxe0YAovp8IiuFjQ/6Ck20JQUjeCSzF2AQ0COxsBX8fDVrOYA47C0JjW1RzPt CLuKVDA3iez4EEgAE7y7YFuqrfyfo5/WLDfvGsE1QOYpcbZFyCSK6arl9Y6oX6CaeTEc m6cw== X-Gm-Message-State: AGi0PuZHsyQ0ln4qUZu7PCGDw0MAaGitLYFLax8dpGCyNVacN3vaM4Hn aTOF/6T3wiylACilm7Gm5pGBYQ== X-Google-Smtp-Source: APiQypLO7t/tIFapE+dIeisNiaU+ZLWVlNY3rCIokzgI0qXvYA/9Om/GW+XDrhERSwepFIUF/71Qdw== X-Received: by 2002:a5d:4a03:: with SMTP id m3mr730903wrq.285.1588919812478; Thu, 07 May 2020 23:36:52 -0700 (PDT) Received: from dynamic-emngbpawjaqsxvclq-pd01.res.v6.highway.a1.net (dynamic-emngbpawjaqsxvclq-pd01.res.v6.highway.a1.net. [2001:871:60:4ec7:c2c1:32b6:5a97:228e]) by smtp.gmail.com with ESMTPSA id v20sm220418wrd.9.2020.05.07.23.36.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 23:36:51 -0700 (PDT) Message-ID: <2322d8108dde9dd7e7f002e082839aeea055d084.camel@cybertec.at> Subject: Re: pg_temp schema created while using DB Link From: Laurenz Albe To: Jill Jade , pgsql-general@lists.postgresql.org Date: Fri, 08 May 2020 08:36:51 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, 2020-05-08 at 10:11 +0400, Jill Jade wrote: > We have an issue with DB_Link from Oracle to PostgreSQL. When we try to access tables from > Oracle database via DB_link, temp schemas(pg_temp,pg_toast) are automatically created > in the database while using the query below. > > create table as select * from table@oralink > > Even if we reload the database, the temp schemas are still there. > > Do you know the reason why the temp schemas are being created with DB_link? > Does anyone has a solution for this problem? These schemas contain temporary tables and are not connected to your connection from Oracle (unless you create temporary tables via that connection). They are an implementation detail and should not bother you. What is your problem with these schemmas? Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com