Re: Bulk_insert in postgresql like Microsoft SQL server

From: Shreeyansh Dba <shreeyansh2014(at)gmail(dot)com>
To: Devendra Yadav <devendra(dot)857(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Bulk_insert in postgresql like Microsoft SQL server
Date: 2018-12-20 12:17:14
Message-ID: CAGDYbUP+764uDhe+y=WuCGk5ODKcWXD8BOVB-PxEBtf8ibBu7A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Yes, copy command required superuser privileges. In pgadmin, you can use
\copy (use psql console pgadminIII) or Import/Export option for bulk insert.

Thanks & Regards,
*Shreeyansh DBA Team*
www.shreeyansh.com

On Wed, Dec 19, 2018 at 11:16 PM Devendra Yadav <devendra(dot)857(at)gmail(dot)com>
wrote:

> Hello Shreeyansh,
>
> You're talking Copy command in psql utility or in pgadmin. In pgadmin it
> needs superuser rights. Have not tried it from windows cmd, as the
> application server is on windows.
>
> Thanks,
> Devendra Yadav
>
> On Wed, Dec 19, 2018, 11:12 PM Shreeyansh Dba <shreeyansh2014(at)gmail(dot)com
> wrote:
>
>>
>> Hi Devendra,
>>
>> You can use copy command for Bulk Insert in PostgreSQL.
>>
>> On Wed, Dec 19, 2018 at 10:59 PM Devendra Yadav <devendra(dot)857(at)gmail(dot)com>
>> wrote:
>>
>>> Dear all,
>>>
>>> We need to provide copy rights to our developer's for *bulk* *inserts*.
>>> But the case is that, for it to happen it needs *superuser* permission
>>> which is very expensive thing a DBA can grant.
>>> Can anybody please suggest if there are such *tools* or utility through
>>> which this can be achieved and with minimal rights.
>>>
>>> Thanks and Regards,
>>> Devendra Yadav
>>>
>>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Prince Pathria 2018-12-20 12:23:46 Re: Shared data dir for multiple postgresql nodes
Previous Message Shreeyansh Dba 2018-12-20 11:43:41 Re: Shared data dir for multiple postgresql nodes