Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 638DEF497B9 for ; Mon, 27 Feb 2012 10:14:24 -0400 (AST) Received: from mail-pw0-f46.google.com ([209.85.160.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S21LI-0006Ar-Gm for pgsql-sql@postgresql.org; Mon, 27 Feb 2012 14:14:23 +0000 Received: by pbcup15 with SMTP id up15so2100872pbc.19 for ; Mon, 27 Feb 2012 06:14:04 -0800 (PST) Received-SPF: pass (google.com: domain of adrian.klaver@gmail.com designates 10.68.134.41 as permitted sender) client-ip=10.68.134.41; Authentication-Results: mr.google.com; spf=pass (google.com: domain of adrian.klaver@gmail.com designates 10.68.134.41 as permitted sender) smtp.mail=adrian.klaver@gmail.com; dkim=pass header.i=adrian.klaver@gmail.com Received: from mr.google.com ([10.68.134.41]) by 10.68.134.41 with SMTP id ph9mr41336921pbb.5.1330352044266 (num_hops = 1); Mon, 27 Feb 2012 06:14:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; bh=5ZvxULOhp5MyeHBeTXyDtJ9hB5ByeIpipcgZ3TZX57I=; b=wNgN1WpX+FT8NI2peb/bZWt3ngseUsM6LG01ydAxjgvI4RWcxEb5Vl9cSk2N+IUnef iLjMtyR0HpTy8e6ZXaOJ2O/B34PfIqacOCxSoIO4kSUuepsDTnD95Md8tnj4JpN/fOx9 n+6ALWdJdNApcsHBIHikPSLnMkHt4DbPVgxRI= Received: by 10.68.134.41 with SMTP id ph9mr35068271pbb.5.1330352044092; Mon, 27 Feb 2012 06:14:04 -0800 (PST) Received: from tucker.localnet (c-24-17-164-54.hsd1.wa.comcast.net. [24.17.164.54]) by mx.google.com with ESMTPS id w8sm12815984pbo.23.2012.02.27.06.14.01 (version=SSLv3 cipher=OTHER); Mon, 27 Feb 2012 06:14:02 -0800 (PST) From: Adrian Klaver To: pgsql-sql@postgresql.org, Rehan Saleem Subject: Re: SQL View to PostgreSQL View Date: Mon, 27 Feb 2012 06:13:59 -0800 User-Agent: KMail/1.13.5 (Linux/2.6.32-38-generic; KDE/4.4.5; i686; ; ) References: <1330282216.75125.YahooMailNeo@web121605.mail.ne1.yahoo.com> In-Reply-To: <1330282216.75125.YahooMailNeo@web121605.mail.ne1.yahoo.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201202270613.59790.adrian.klaver@gmail.com> X-Pg-Spam-Score: -2.7 (--) X-Archive-Number: 201202/85 X-Sequence-Number: 36378 On Sunday, February 26, 2012 10:50:16 am Rehan Saleem wrote: > Hi , > I am trying to convert sql > view to postgresql view but i am getting the > following error i dont know how > to handle dbo. > in postgresql and when i remove dbo. from table name then view got created > but it does not show any data, while this is working perfectly fine in > sql, here is my code and error details > > i am getting this error , how can i fix this. > > ERROR: schema "dbo" does not exist > LINE 15: from dbo.kbsites a inner join dbo.kbsites b on a.chr=b.chr > ^ > > ********** Error ********** > > ERROR: schema "dbo" does not exist > SQL state: 3F000 > Character: 761 Do you in fact have a schema dbo? If so can you access the schema and table using some other method, for instance using psql? -- Adrian Klaver adrian.klaver@gmail.com