Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gM6ZS-0007VA-MR for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Nov 2018 07:23:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gM6ZR-00084N-2W for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Nov 2018 07:23:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gM6ZQ-00084G-Oc for pgsql-bugs@lists.postgresql.org; Mon, 12 Nov 2018 07:23:40 +0000 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gM6ZN-0002Ky-Vz for pgsql-bugs@lists.postgresql.org; Mon, 12 Nov 2018 07:23:39 +0000 Received: by mail-pl1-x62d.google.com with SMTP id g59-v6so3881524plb.10 for ; Sun, 11 Nov 2018 23:23:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=m/c/5/W+MO+gCQfTu+O9XqjnW93xMg/RUkLJHPtJ5GI=; b=bMsJ7PpiFtbrrAeBy8KI01mxK2O4C24FIuas5qagyaQIoeNfgy7hQuVmpg74OpTyyf X19U0ci99AvGXIqljyYDqLsPkPqLmoB8dN5fu4u6YG19GBu/ru53GAhQwkriy2hdZ6jT 0SQgenKyDHiI1g/RHxJvAvMNhFHrx/u1FYPWg= 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:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=m/c/5/W+MO+gCQfTu+O9XqjnW93xMg/RUkLJHPtJ5GI=; b=BsZQOT96/h8g/Cgb/6e4Jc3+Q5NVFCiD138IygH+aArONhjGeMa+rN5HZksNrwmw+M sk2ubGUAGaBDqXBIYJotTKPDUmpf4UOuaVuy+/RA7oDQyRjG4MMGaHwqMZZkOsUcuUyO syMGSPL8213dB3yMuhPgq2wFVj+7XvL5NEXOZPGAlWJvHhtVUXObQ8+2o7E0Jv2Hs1MF M0+PYx/H8wCzlr/zvUpVdLPPTLnAra+jgIZmGRbO87Pp63UN8CLwr+gwAFaKxQka33rD 6qfdGSEYP8TC+72FSCjEq4dsrXta8ybN5zeo6o8RzOEG1iKWafsNLuznSST/chdLSRTY L/cQ== X-Gm-Message-State: AGRZ1gLCW3YwcAMVh1tKDPJ1xIw0UIBoZvVzemMKvmPztpzoTbCD7W5S P4S8IYU5fmvs8ujALFot0cA36iKcHeA= X-Google-Smtp-Source: AJdET5eQ8GY2qsvYBxpuDRkMqs7k03lF9lYaRIulBOJQ/w20rIuBnVo33u5LAeBL9AWXSPWPVszUxw== X-Received: by 2002:a17:902:33c1:: with SMTP id b59-v6mr18494975plc.71.1542007416248; Sun, 11 Nov 2018 23:23:36 -0800 (PST) Received: from rfd.leadboat.com (c-73-158-248-138.hsd1.ca.comcast.net. [73.158.248.138]) by smtp.gmail.com with ESMTPSA id y9-v6sm16342405pfl.187.2018.11.11.23.23.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Nov 2018 23:23:35 -0800 (PST) Date: Sun, 11 Nov 2018 23:23:33 -0800 From: Noah Misch To: yujing@amne.co, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15326: keep getting "ERROR: type "earth" does not exist" while it does exist Message-ID: <20181112072333.GA1072831@rfd.leadboat.com> References: <153428499086.10434.4591295588117224263@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <153428499086.10434.4591295588117224263@wrigleys.postgresql.org> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Aug 14, 2018 at 10:16:30PM +0000, PG Bug reporting form wrote: > The following bug has been logged on the website: > > Bug reference: 15326 > Logged by: Yujing Zhou > Email address: yujing@amne.co > PostgreSQL version: 10.5 > Operating system: Mac OS > Description: > > The issue is that when I tried to restore the archive to my local database, > it keep saying "ERROR: type "earth" does not exist" while it does exist in > my public schema(I checked it in DataCrip). I have no idea what is going on > and which part is wrong, feeling really weird. I hope you can help figure > out the problem. You need a change similar to the CREATE OR REPLACE FUNCTION in https://postgr.es/m/flat/20180405065957.GA2276534@rfd.leadboat.com. The exact change depends on the definition of your object that references "earth".