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 1hL7Qm-00049P-26 for pgsql-general@arkaria.postgresql.org; Mon, 29 Apr 2019 14:38:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hL7Qk-00071d-M3 for pgsql-general@arkaria.postgresql.org; Mon, 29 Apr 2019 14:38:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hL6rE-0006qs-6P for pgsql-general@lists.postgresql.org; Mon, 29 Apr 2019 14:02:12 +0000 Received: from mail-eopbgr700079.outbound.protection.outlook.com ([40.107.70.79] helo=NAM04-SN1-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hL6r8-00006f-Fw for pgsql-general@lists.postgresql.org; Mon, 29 Apr 2019 14:02:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Exponentialinc.onmicrosoft.com; s=selector1-exponential-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=f2RjpNeGNVu2NTWVwESZpZ//wGgMGlLY79l5Dhca2TQ=; b=DXa/yNiQmkB0YPBbHwcJSdA2nx5Hmb8tUVPh3xDSUYA8O1zA83JsCfnc/Ix6Xj5P+f7ZOIcDi5kLjMUGJDcwdvFY5hej/y7zyBpC/15P+0/+Cez2qPvsDsmEhq4XvIbw/KK8hAHulk2TqkrLCWhwp+oFhmJyf9XsmIWgyVIJXtY= Received: from BL0PR01MB5187.prod.exchangelabs.com (10.167.235.95) by BL0PR01MB4324.prod.exchangelabs.com (20.177.207.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.14; Mon, 29 Apr 2019 14:02:01 +0000 Received: from BL0PR01MB5187.prod.exchangelabs.com ([fe80::9df8:5eee:7a49:44ec]) by BL0PR01MB5187.prod.exchangelabs.com ([fe80::9df8:5eee:7a49:44ec%3]) with mapi id 15.20.1835.018; Mon, 29 Apr 2019 14:02:01 +0000 From: Daulat Ram To: "pgsql-general@lists.postgresql.org" Subject: How to execute .sql file inside a postgres schema Thread-Topic: How to execute .sql file inside a postgres schema Thread-Index: AdT+k9mMLqfZ1YEjRDW1+GuGF/tAoA== Date: Mon, 29 Apr 2019 14:02:01 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Daulat.Ram@exponential.com; x-originating-ip: [182.73.208.106] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bb1f9112-ae44-4e3b-b4f9-08d6ccab40c9 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020);SRVR:BL0PR01MB4324; x-ms-traffictypediagnostic: BL0PR01MB4324: x-ms-exchange-purlcount: 2 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 0022134A87 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(979002)(39850400004)(396003)(366004)(136003)(376002)(346002)(199004)(189003)(5640700003)(76116006)(2351001)(55016002)(7736002)(52536014)(6916009)(6436002)(186003)(66446008)(66476007)(66556008)(64756008)(73956011)(66946007)(486006)(33656002)(6506007)(476003)(97736004)(790700001)(71190400001)(316002)(5660300002)(71200400001)(99286004)(3846002)(478600001)(6116002)(66066001)(14454004)(72206003)(102836004)(25786009)(2501003)(8676002)(81156014)(78486014)(9686003)(86362001)(54896002)(68736007)(74316002)(8936002)(558084003)(6306002)(53936002)(26005)(2906002)(81166006)(256004)(7696005)(142923001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL0PR01MB4324;H:BL0PR01MB5187.prod.exchangelabs.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: exponential.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: +fr2TOaF01d9abvPmDvw+YyHf8x+6GcnqwjlcuRbA65RGk3DuoFjF8S4Yq/OiQ8rt+UYV8pObkeYHXkaBRcy17Iv6E9oedal2Vj3i5UGnWEzYwTwOq3SCicjhZ2HBPr9/GX1thYhkF4w0HS9M+6+5vvWS6225LMNs+x5/TY2AHAkrA0p/jkaFzTKPj6prE3lUlkvZCU6yucoXQgQxelVLTgBCCDCAeUo0HG8NDixHAqamqWA7bEXrwaw10K2Gg4oNiR6R6sF4UZ85fhfKKV2hkyvfVZdvizrEBQjJh3vHwW8Oq6PtAJrReovwY+vXlTrZ+97wP4xT/89iCsxK6eSHxZGis7Xsx4M7ZFRb99pVuPbsJQ2ylnCqbRykuju6fy5aUHfz/25MuhcwpYVWl3Bv0Mqe5lyfUHjv+JFKrTzDBg= Content-Type: multipart/alternative; boundary="_000_BL0PR01MB5187F12FAA0158DFE4CDDEDA9B390BL0PR01MB5187prod_" MIME-Version: 1.0 X-OriginatorOrg: exponential.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb1f9112-ae44-4e3b-b4f9-08d6ccab40c9 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2019 14:02:01.6167 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: c1877106-092b-492d-8db3-c9fec130d4fd X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR01MB4324 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_BL0PR01MB5187F12FAA0158DFE4CDDEDA9B390BL0PR01MB5187prod_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello team, I have a database name "kbdb" that is having a schema "kb" and I want to ex= ecute the test.sql file inside this schema, Please help how we can do that. Regards, Daulat --_000_BL0PR01MB5187F12FAA0158DFE4CDDEDA9B390BL0PR01MB5187prod_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello team,

 

I have a database name “kbdb” that is ha= ving a schema “kb” and I want to execute the test.sql file insi= de this schema,

 

Please help how we can do that.

 

Regards,

Daulat

--_000_BL0PR01MB5187F12FAA0158DFE4CDDEDA9B390BL0PR01MB5187prod_--