pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PG Admin 4.28 is crashing while viewing 10M row data
12+ messages / 4 participants
[nested] [flat]

* PG Admin 4.28 is crashing while viewing 10M row data
@ 2020-11-22 16:45 Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-22 16:55 ` Re: PG Admin 4.28 is crashing while viewing 10M row data David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 1 reply; 12+ messages in thread

From: Sachin Kumar @ 2020-11-22 16:45 UTC (permalink / raw)
  To: pgsql-admin

Hi Expert,
I am updating 10 Million records using COPY command in a table, the table
is updated in a minute, but when I am trying to view all row. PGadmin 4.28
which I am using in chrome is getting crashed. I tried it 4 times and it
crashed 3 times. After viewing this 10M row the other queries are very
running slow.
is there any process to clear the buffer in PGAdmin or process through
which the quey in PGAdmin runs at its normal speed?
Please guide me on how to fix this issue.

-- 

Best Regards,
Sachin Kumar

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: PG Admin 4.28 is crashing while viewing 10M row data
  2020-11-22 16:45 PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
@ 2020-11-22 16:55 ` David G. Johnston <david.g.johnston@gmail.com>
  2020-11-23 04:26   ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-23 04:53   ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
  0 siblings, 2 replies; 12+ messages in thread

From: David G. Johnston @ 2020-11-22 16:55 UTC (permalink / raw)
  To: Sachin Kumar <sachinkumaras@gmail.com>; +Cc: pgsql-admin

On Sunday, November 22, 2020, Sachin Kumar <sachinkumaras@gmail.com> wrote:

> Hi Expert,
> I am updating 10 Million records using COPY command in a table, the table
> is updated in a minute, but when I am trying to view all row. PGadmin 4.28
> which I am using in chrome is getting crashed. I tried it 4 times and it
> crashed 3 times. After viewing this 10M row the other queries are very
> running slow.
> is there any process to clear the buffer in PGAdmin or process through
> which the quey in PGAdmin runs at its normal speed?
> Please guide me on how to fix this issue.
>
>
Stop and restart the program?

What do you hope to do with 10M full records displayed on screen (even if
pagination is involved...)?

David J.

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: PG Admin 4.28 is crashing while viewing 10M row data
  2020-11-22 16:45 PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-22 16:55 ` Re: PG Admin 4.28 is crashing while viewing 10M row data David G. Johnston <david.g.johnston@gmail.com>
@ 2020-11-23 04:26   ` Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-23 04:44     ` Re: PG Admin 4.28 is crashing while viewing 10M row data David G. Johnston <david.g.johnston@gmail.com>
  1 sibling, 1 reply; 12+ messages in thread

From: Sachin Kumar @ 2020-11-23 04:26 UTC (permalink / raw)
  To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-admin

Hi David,
I want to verify the records updated in the table, once the record is
updated I have to run a query on all the records. to filter status.

Restarted the service, but what will be the solution to verify 10 Million
updated data.

On Sun, Nov 22, 2020 at 10:25 PM David G. Johnston <
david.g.johnston@gmail.com> wrote:

>
> On Sunday, November 22, 2020, Sachin Kumar <sachinkumaras@gmail.com>
> wrote:
>
>> Hi Expert,
>> I am updating 10 Million records using COPY command in a table, the table
>> is updated in a minute, but when I am trying to view all row. PGadmin 4.28
>> which I am using in chrome is getting crashed. I tried it 4 times and it
>> crashed 3 times. After viewing this 10M row the other queries are very
>> running slow.
>> is there any process to clear the buffer in PGAdmin or process through
>> which the quey in PGAdmin runs at its normal speed?
>> Please guide me on how to fix this issue.
>>
>>
> Stop and restart the program?
>
> What do you hope to do with 10M full records displayed on screen (even if
> pagination is involved...)?
>
> David J.
>
>


-- 

Best Regards,
Sachin Kumar

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: PG Admin 4.28 is crashing while viewing 10M row data
  2020-11-22 16:45 PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-22 16:55 ` Re: PG Admin 4.28 is crashing while viewing 10M row data David G. Johnston <david.g.johnston@gmail.com>
  2020-11-23 04:26   ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
@ 2020-11-23 04:44     ` David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 0 replies; 12+ messages in thread

From: David G. Johnston @ 2020-11-23 04:44 UTC (permalink / raw)
  To: Sachin Kumar <sachinkumaras@gmail.com>; +Cc: pgsql-admin

On Sunday, November 22, 2020, Sachin Kumar <sachinkumaras@gmail.com> wrote:

> Hi David,
> I want to verify the records updated in the table, once the record is
> updated I have to run a query on all the records. to filter status.
>
> Restarted the service, but what will be the solution to verify 10 Million
> updated data.
>
>
>
Why the trust issues?  What aspect of the data are you trying to verify.
How is your copy causing updates? If you mean inserts it is confusing to
call inserts updates when updating is an actual thing.

Once a command returns it either worked or will report an error.

David J.

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: PG Admin 4.28 is crashing while viewing 10M row data
  2020-11-22 16:45 PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-22 16:55 ` Re: PG Admin 4.28 is crashing while viewing 10M row data David G. Johnston <david.g.johnston@gmail.com>
@ 2020-11-23 04:53   ` dbatoCloud Solution <dbatocloud17@gmail.com>
  2020-11-23 05:06     ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  1 sibling, 1 reply; 12+ messages in thread

From: dbatoCloud Solution @ 2020-11-23 04:53 UTC (permalink / raw)
  To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: Sachin Kumar <sachinkumaras@gmail.com>; pgsql-admin

Hi Sachin,

Let me know-how did you give a commit statement during update? Did you try
use Vacuum and analyze command during update? are you frequently Vacuuming
this table large table .

if the postgresql is running on Linux then run it by batch with
intermediate commit.



Thanks & Best Wishes,

Ashok







Thanks & Best Wishes,

Ashok



---------------------------------------------------------------------------------------------------------------------

Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*

*Dubai** , UAE* *| BLR , INDIA*

M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975 99922*

W: https://dbatocloudsolution.blogspot.in/
<http://dbatocloudsolution.blogspot.in/; | E: dbatocloud17@gmail.com


On Sun, Nov 22, 2020 at 10:25 PM David G. Johnston <
david.g.johnston@gmail.com> wrote:

>
> On Sunday, November 22, 2020, Sachin Kumar <sachinkumaras@gmail.com>
> wrote:
>
>> Hi Expert,
>> I am updating 10 Million records using COPY command in a table, the table
>> is updated in a minute, but when I am trying to view all row. PGadmin 4.28
>> which I am using in chrome is getting crashed. I tried it 4 times and it
>> crashed 3 times. After viewing this 10M row the other queries are very
>> running slow.
>> is there any process to clear the buffer in PGAdmin or process through
>> which the quey in PGAdmin runs at its normal speed?
>> Please guide me on how to fix this issue.
>>
>>
> Stop and restart the program?
>
> What do you hope to do with 10M full records displayed on screen (even if
> pagination is involved...)?
>
> David J.
>
>

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: PG Admin 4.28 is crashing while viewing 10M row data
  2020-11-22 16:45 PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-22 16:55 ` Re: PG Admin 4.28 is crashing while viewing 10M row data David G. Johnston <david.g.johnston@gmail.com>
  2020-11-23 04:53   ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
@ 2020-11-23 05:06     ` Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-23 14:59       ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
  0 siblings, 1 reply; 12+ messages in thread

From: Sachin Kumar @ 2020-11-23 05:06 UTC (permalink / raw)
  To: dbatoCloud Solution <dbatocloud17@gmail.com>; +Cc: David G. Johnston <david.g.johnston@gmail.com>; pgsql-admin

HI Ashok,

Please find the command i am using to upload 10 million data into a table.

*copy command to update records*
copy hk_card_master_test from
'C:/inetpub/wwwroot/cards/media/static/rawsheet_001-000.csv' with delimiter
E'\t' csv header encoding 'ISO_8859_5'

I am not using the Vacuum command during the update? NO, I  am not
Vacuuming this large table.
I am using the analyze command for other queries.

I am not aware of the Vacuum command functionality. Please if you can help
in understanding Vacuum query.


On Mon, Nov 23, 2020 at 10:23 AM dbatoCloud Solution <dbatocloud17@gmail.com>
wrote:

> Hi Sachin,
>
> Let me know-how did you give a commit statement during update? Did you try
> use Vacuum and analyze command during update? are you frequently Vacuuming
> this table large table .
>
> if the postgresql is running on Linux then run it by batch with
> intermediate commit.
>
>
>
> Thanks & Best Wishes,
>
> Ashok
>
>
>
>
>
>
>
> Thanks & Best Wishes,
>
> Ashok
>
>
>
>
> ---------------------------------------------------------------------------------------------------------------------
>
> Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*
>
> *Dubai** , UAE* *| BLR , INDIA*
>
> M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975 99922*
>
> W: https://dbatocloudsolution.blogspot.in/
> <http://dbatocloudsolution.blogspot.in/; | E: dbatocloud17@gmail.com
>
>
> On Sun, Nov 22, 2020 at 10:25 PM David G. Johnston <
> david.g.johnston@gmail.com> wrote:
>
>>
>> On Sunday, November 22, 2020, Sachin Kumar <sachinkumaras@gmail.com>
>> wrote:
>>
>>> Hi Expert,
>>> I am updating 10 Million records using COPY command in a table, the
>>> table is updated in a minute, but when I am trying to view all row. PGadmin
>>> 4.28 which I am using in chrome is getting crashed. I tried it 4 times and
>>> it crashed 3 times. After viewing this 10M row the other queries are very
>>> running slow.
>>> is there any process to clear the buffer in PGAdmin or process through
>>> which the quey in PGAdmin runs at its normal speed?
>>> Please guide me on how to fix this issue.
>>>
>>>
>> Stop and restart the program?
>>
>> What do you hope to do with 10M full records displayed on screen (even if
>> pagination is involved...)?
>>
>> David J.
>>
>>
>

-- 

Best Regards,
Sachin Kumar

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: PG Admin 4.28 is crashing while viewing 10M row data
  2020-11-22 16:45 PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-22 16:55 ` Re: PG Admin 4.28 is crashing while viewing 10M row data David G. Johnston <david.g.johnston@gmail.com>
  2020-11-23 04:53   ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
  2020-11-23 05:06     ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
@ 2020-11-23 14:59       ` dbatoCloud Solution <dbatocloud17@gmail.com>
  2020-11-24 10:37         ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  0 siblings, 1 reply; 12+ messages in thread

From: dbatoCloud Solution @ 2020-11-23 14:59 UTC (permalink / raw)
  To: Sachin Kumar <sachinkumaras@gmail.com>; +Cc: David G. Johnston <david.g.johnston@gmail.com>; pgsql-admin

Hi Sachin,
sorry for, delayed response,

Why don't you run batch by batch?

could you please confirm the below parameters values:- Since your doing
bulk load I need the below details to recommend then I would suggest for a
vacuum?
hk_card_master_test              > has it created newly or old table with
index was already existed?  please confirm?
postgresql database version                      ?
shared_buffers =                          ? (default: 32MB)
effective_cache_size = ? (default: 128MB)
checkpoint_segment = ? (default: 3)
checkpoint_completion_target = ? (default: 0.5)
default_statistics_target = ? (default: 100)
work_mem = ? (default: 1MB)
maintainance_work_mem = ? (default: 16MB)




Thanks & Best Wishes,

Ashok



---------------------------------------------------------------------------------------------------------------------

Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*

*Dubai** , UAE* *| BLR , INDIA*

M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975 99922*

W: https://dbatocloudsolution.blogspot.in/
<http://dbatocloudsolution.blogspot.in/; | E: dbatocloud17@gmail.com


On Mon, Nov 23, 2020 at 10:36 AM Sachin Kumar <sachinkumaras@gmail.com>
wrote:

> HI Ashok,
>
> Please find the command i am using to upload 10 million data into a table.
>
> *copy command to update records*
> copy hk_card_master_test from
> 'C:/inetpub/wwwroot/cards/media/static/rawsheet_001-000.csv' with delimiter
> E'\t' csv header encoding 'ISO_8859_5'
>
> I am not using the Vacuum command during the update? NO, I  am not
> Vacuuming this large table.
> I am using the analyze command for other queries.
>
> I am not aware of the Vacuum command functionality. Please if you can help
> in understanding Vacuum query.
>
>
> On Mon, Nov 23, 2020 at 10:23 AM dbatoCloud Solution <
> dbatocloud17@gmail.com> wrote:
>
>> Hi Sachin,
>>
>> Let me know-how did you give a commit statement during update? Did you
>> try use Vacuum and analyze command during update? are you
>> frequently Vacuuming this table large table .
>>
>> if the postgresql is running on Linux then run it by batch with
>> intermediate commit.
>>
>>
>>
>> Thanks & Best Wishes,
>>
>> Ashok
>>
>>
>>
>>
>>
>>
>>
>> Thanks & Best Wishes,
>>
>> Ashok
>>
>>
>>
>>
>> ---------------------------------------------------------------------------------------------------------------------
>>
>> Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*
>>
>> *Dubai** , UAE* *| BLR , INDIA*
>>
>> M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975 99922*
>>
>> W: https://dbatocloudsolution.blogspot.in/
>> <http://dbatocloudsolution.blogspot.in/; | E: dbatocloud17@gmail.com
>>
>>
>> On Sun, Nov 22, 2020 at 10:25 PM David G. Johnston <
>> david.g.johnston@gmail.com> wrote:
>>
>>>
>>> On Sunday, November 22, 2020, Sachin Kumar <sachinkumaras@gmail.com>
>>> wrote:
>>>
>>>> Hi Expert,
>>>> I am updating 10 Million records using COPY command in a table, the
>>>> table is updated in a minute, but when I am trying to view all row. PGadmin
>>>> 4.28 which I am using in chrome is getting crashed. I tried it 4 times and
>>>> it crashed 3 times. After viewing this 10M row the other queries are very
>>>> running slow.
>>>> is there any process to clear the buffer in PGAdmin or process through
>>>> which the quey in PGAdmin runs at its normal speed?
>>>> Please guide me on how to fix this issue.
>>>>
>>>>
>>> Stop and restart the program?
>>>
>>> What do you hope to do with 10M full records displayed on screen (even
>>> if pagination is involved...)?
>>>
>>> David J.
>>>
>>>
>>
>
> --
>
> Best Regards,
> Sachin Kumar
>

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: PG Admin 4.28 is crashing while viewing 10M row data
  2020-11-22 16:45 PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-22 16:55 ` Re: PG Admin 4.28 is crashing while viewing 10M row data David G. Johnston <david.g.johnston@gmail.com>
  2020-11-23 04:53   ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
  2020-11-23 05:06     ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-23 14:59       ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
@ 2020-11-24 10:37         ` Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-25 01:51           ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
  0 siblings, 1 reply; 12+ messages in thread

From: Sachin Kumar @ 2020-11-24 10:37 UTC (permalink / raw)
  To: dbatoCloud Solution <dbatocloud17@gmail.com>; +Cc: David G. Johnston <david.g.johnston@gmail.com>; pgsql-admin

Hi Ashok,

it's an old table where an index is already created.

postgresql database version 12 and 13 1 @ each server.

all settings are on the default configuration.

server configuration.

Operating system :- Windows (Windows Server 2016 Datacenter)
Size (2 vcpus, 8 GiB memory)

On Mon, Nov 23, 2020 at 8:30 PM dbatoCloud Solution <dbatocloud17@gmail.com>
wrote:

> Hi Sachin,
> sorry for, delayed response,
>
> Why don't you run batch by batch?
>
> could you please confirm the below parameters values:- Since your doing
> bulk load I need the below details to recommend then I would suggest for a
> vacuum?
> hk_card_master_test              > has it created newly or old table with
> index was already existed?  please confirm?
> postgresql database version                      ?
> shared_buffers =                          ? (default: 32MB)
> effective_cache_size = ? (default: 128MB)
> checkpoint_segment = ? (default: 3)
> checkpoint_completion_target = ? (default: 0.5)
> default_statistics_target = ? (default: 100)
> work_mem = ? (default: 1MB)
> maintainance_work_mem = ? (default: 16MB)
>
>
>
>
> Thanks & Best Wishes,
>
> Ashok
>
>
>
>
> ---------------------------------------------------------------------------------------------------------------------
>
> Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*
>
> *Dubai** , UAE* *| BLR , INDIA*
>
> M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975 99922*
>
> W: https://dbatocloudsolution.blogspot.in/
> <http://dbatocloudsolution.blogspot.in/; | E: dbatocloud17@gmail.com
>
>
> On Mon, Nov 23, 2020 at 10:36 AM Sachin Kumar <sachinkumaras@gmail.com>
> wrote:
>
>> HI Ashok,
>>
>> Please find the command i am using to upload 10 million data into a table.
>>
>> *copy command to update records*
>> copy hk_card_master_test from
>> 'C:/inetpub/wwwroot/cards/media/static/rawsheet_001-000.csv' with delimiter
>> E'\t' csv header encoding 'ISO_8859_5'
>>
>> I am not using the Vacuum command during the update? NO, I  am not
>> Vacuuming this large table.
>> I am using the analyze command for other queries.
>>
>> I am not aware of the Vacuum command functionality. Please if you can
>> help in understanding Vacuum query.
>>
>>
>> On Mon, Nov 23, 2020 at 10:23 AM dbatoCloud Solution <
>> dbatocloud17@gmail.com> wrote:
>>
>>> Hi Sachin,
>>>
>>> Let me know-how did you give a commit statement during update? Did you
>>> try use Vacuum and analyze command during update? are you
>>> frequently Vacuuming this table large table .
>>>
>>> if the postgresql is running on Linux then run it by batch with
>>> intermediate commit.
>>>
>>>
>>>
>>> Thanks & Best Wishes,
>>>
>>> Ashok
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Thanks & Best Wishes,
>>>
>>> Ashok
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------------------------------------------------------
>>>
>>> Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*
>>>
>>> *Dubai** , UAE* *| BLR , INDIA*
>>>
>>> M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975 99922*
>>>
>>> W: https://dbatocloudsolution.blogspot.in/
>>> <http://dbatocloudsolution.blogspot.in/; | E: dbatocloud17@gmail.com
>>>
>>>
>>> On Sun, Nov 22, 2020 at 10:25 PM David G. Johnston <
>>> david.g.johnston@gmail.com> wrote:
>>>
>>>>
>>>> On Sunday, November 22, 2020, Sachin Kumar <sachinkumaras@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Expert,
>>>>> I am updating 10 Million records using COPY command in a table, the
>>>>> table is updated in a minute, but when I am trying to view all row. PGadmin
>>>>> 4.28 which I am using in chrome is getting crashed. I tried it 4 times and
>>>>> it crashed 3 times. After viewing this 10M row the other queries are very
>>>>> running slow.
>>>>> is there any process to clear the buffer in PGAdmin or process through
>>>>> which the quey in PGAdmin runs at its normal speed?
>>>>> Please guide me on how to fix this issue.
>>>>>
>>>>>
>>>> Stop and restart the program?
>>>>
>>>> What do you hope to do with 10M full records displayed on screen (even
>>>> if pagination is involved...)?
>>>>
>>>> David J.
>>>>
>>>>
>>>
>>
>> --
>>
>> Best Regards,
>> Sachin Kumar
>>
>

-- 

Best Regards,
Sachin Kumar

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: PG Admin 4.28 is crashing while viewing 10M row data
  2020-11-22 16:45 PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-22 16:55 ` Re: PG Admin 4.28 is crashing while viewing 10M row data David G. Johnston <david.g.johnston@gmail.com>
  2020-11-23 04:53   ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
  2020-11-23 05:06     ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-23 14:59       ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
  2020-11-24 10:37         ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
@ 2020-11-25 01:51           ` dbatoCloud Solution <dbatocloud17@gmail.com>
  2020-11-26 05:30             ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  0 siblings, 1 reply; 12+ messages in thread

From: dbatoCloud Solution @ 2020-11-25 01:51 UTC (permalink / raw)
  To: Sachin Kumar <sachinkumaras@gmail.com>; +Cc: David G. Johnston <david.g.johnston@gmail.com>; pgsql-admin

Hi Sachin - try the below steps and let me know

Hi Sachin,
Step 1:-  Configure these below parameters before the bulk inserts then
restart the server.

shared_buffers = 2048MB (default: 32MB)               -  25% of physical
memory is 2GB ( You system size 8GB physical memory)
effective_cache_size = 4096MB (default: 128MB)        -   I recommend to go
for higher value , so that index scan will be used instead of sequential
scan.
checkpoint_segment = 32 (default: 3)                  -     in 9.5
checkpoint_segments but in Version 12 is max_size_size
max_wal_size       = 32 (default 1GB)                 -  increase the value
for heavy  load, but FYI it will increase the recovery if incase system
crashed.
checkpoint_completion_target = 0.9 (default: 0.5)      - the target of
checkpoint completion time increase to 0.9
default_statistics_target = 1000 (default: 100)       - fraction of total
time between checkpoints.
work_mem = 200MB (default: 1MB)
maintainance_work_mem = 1GB (default: 16MB)           -  this is for
vacuum, creating index. since your table old table with index then i would
recomment this parameter to be higher.

step 2:-

select name, setting from pg_settings where name = 'autovacuum' ;

if the output says "on" then no need to vacuum your table else do the below

VACUUM FULL hk_card_master_test  ;





Thanks & Best Wishes,

Ashok



---------------------------------------------------------------------------------------------------------------------

Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*

*Dubai** , UAE* *| BLR , INDIA*

M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975 99922*

W: https://dbatocloudsolution.blogspot.in/
<http://dbatocloudsolution.blogspot.in/; | E: dbatocloud17@gmail.com


On Tue, Nov 24, 2020 at 4:08 PM Sachin Kumar <sachinkumaras@gmail.com>
wrote:

> Hi Ashok,
>
> it's an old table where an index is already created.
>
> postgresql database version 12 and 13 1 @ each server.
>
> all settings are on the default configuration.
>
> server configuration.
>
> Operating system :- Windows (Windows Server 2016 Datacenter)
> Size (2 vcpus, 8 GiB memory)
>
> On Mon, Nov 23, 2020 at 8:30 PM dbatoCloud Solution <
> dbatocloud17@gmail.com> wrote:
>
>> Hi Sachin,
>> sorry for, delayed response,
>>
>> Why don't you run batch by batch?
>>
>> could you please confirm the below parameters values:- Since your doing
>> bulk load I need the below details to recommend then I would suggest for a
>> vacuum?
>> hk_card_master_test              > has it created newly or old table with
>> index was already existed?  please confirm?
>> postgresql database version                      ?
>> shared_buffers =                          ? (default: 32MB)
>> effective_cache_size = ? (default: 128MB)
>> checkpoint_segment = ? (default: 3)
>> checkpoint_completion_target = ? (default: 0.5)
>> default_statistics_target = ? (default: 100)
>> work_mem = ? (default: 1MB)
>> maintainance_work_mem = ? (default: 16MB)
>>
>>
>>
>>
>> Thanks & Best Wishes,
>>
>> Ashok
>>
>>
>>
>>
>> ---------------------------------------------------------------------------------------------------------------------
>>
>> Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*
>>
>> *Dubai** , UAE* *| BLR , INDIA*
>>
>> M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975 99922*
>>
>> W: https://dbatocloudsolution.blogspot.in/
>> <http://dbatocloudsolution.blogspot.in/; | E: dbatocloud17@gmail.com
>>
>>
>> On Mon, Nov 23, 2020 at 10:36 AM Sachin Kumar <sachinkumaras@gmail.com>
>> wrote:
>>
>>> HI Ashok,
>>>
>>> Please find the command i am using to upload 10 million data into a
>>> table.
>>>
>>> *copy command to update records*
>>> copy hk_card_master_test from
>>> 'C:/inetpub/wwwroot/cards/media/static/rawsheet_001-000.csv' with delimiter
>>> E'\t' csv header encoding 'ISO_8859_5'
>>>
>>> I am not using the Vacuum command during the update? NO, I  am not
>>> Vacuuming this large table.
>>> I am using the analyze command for other queries.
>>>
>>> I am not aware of the Vacuum command functionality. Please if you can
>>> help in understanding Vacuum query.
>>>
>>>
>>> On Mon, Nov 23, 2020 at 10:23 AM dbatoCloud Solution <
>>> dbatocloud17@gmail.com> wrote:
>>>
>>>> Hi Sachin,
>>>>
>>>> Let me know-how did you give a commit statement during update? Did you
>>>> try use Vacuum and analyze command during update? are you
>>>> frequently Vacuuming this table large table .
>>>>
>>>> if the postgresql is running on Linux then run it by batch with
>>>> intermediate commit.
>>>>
>>>>
>>>>
>>>> Thanks & Best Wishes,
>>>>
>>>> Ashok
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Thanks & Best Wishes,
>>>>
>>>> Ashok
>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------------------------------------------------------
>>>>
>>>> Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*
>>>>
>>>> *Dubai** , UAE* *| BLR , INDIA*
>>>>
>>>> M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975 99922*
>>>>
>>>> W: https://dbatocloudsolution.blogspot.in/
>>>> <http://dbatocloudsolution.blogspot.in/; | E: dbatocloud17@gmail.com
>>>>
>>>>
>>>> On Sun, Nov 22, 2020 at 10:25 PM David G. Johnston <
>>>> david.g.johnston@gmail.com> wrote:
>>>>
>>>>>
>>>>> On Sunday, November 22, 2020, Sachin Kumar <sachinkumaras@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Expert,
>>>>>> I am updating 10 Million records using COPY command in a table, the
>>>>>> table is updated in a minute, but when I am trying to view all row. PGadmin
>>>>>> 4.28 which I am using in chrome is getting crashed. I tried it 4 times and
>>>>>> it crashed 3 times. After viewing this 10M row the other queries are very
>>>>>> running slow.
>>>>>> is there any process to clear the buffer in PGAdmin or process
>>>>>> through which the quey in PGAdmin runs at its normal speed?
>>>>>> Please guide me on how to fix this issue.
>>>>>>
>>>>>>
>>>>> Stop and restart the program?
>>>>>
>>>>> What do you hope to do with 10M full records displayed on screen (even
>>>>> if pagination is involved...)?
>>>>>
>>>>> David J.
>>>>>
>>>>>
>>>>
>>>
>>> --
>>>
>>> Best Regards,
>>> Sachin Kumar
>>>
>>
>
> --
>
> Best Regards,
> Sachin Kumar
>

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: PG Admin 4.28 is crashing while viewing 10M row data
  2020-11-22 16:45 PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-22 16:55 ` Re: PG Admin 4.28 is crashing while viewing 10M row data David G. Johnston <david.g.johnston@gmail.com>
  2020-11-23 04:53   ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
  2020-11-23 05:06     ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-23 14:59       ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
  2020-11-24 10:37         ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-25 01:51           ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
@ 2020-11-26 05:30             ` Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-26 07:14               ` Re: PG Admin 4.28 is crashing while viewing 10M row data Holger Jakobs <holger@jakobs.com>
  0 siblings, 1 reply; 12+ messages in thread

From: Sachin Kumar @ 2020-11-26 05:30 UTC (permalink / raw)
  To: dbatoCloud Solution <dbatocloud17@gmail.com>; +Cc: David G. Johnston <david.g.johnston@gmail.com>; pgsql-admin

Hi Team,

After doing all these changes the DB services stopped and not started when
I tried manually. I have to roll back all these changes and reinstall
PGAdmin which wastes a lot of time for the team to fix these issues.

error statement :- could not connect to server: Connection refused
(0x0000274D/10061) Is the server running on host "localhost" (127.0.0.1)
and accepting TCP/IP connections on port 5432?

Kindly share tried and tested solution



On Wed, Nov 25, 2020 at 7:22 AM dbatoCloud Solution <dbatocloud17@gmail.com>
wrote:

> Hi Sachin - try the below steps and let me know
>
> Hi Sachin,
> Step 1:-  Configure these below parameters before the bulk inserts then
> restart the server.
>
> shared_buffers = 2048MB (default: 32MB)               -  25% of physical
> memory is 2GB ( You system size 8GB physical memory)
> effective_cache_size = 4096MB (default: 128MB)        -   I recommend to
> go for higher value , so that index scan will be used instead of sequential
> scan.
> checkpoint_segment = 32 (default: 3)                  -     in 9.5
> checkpoint_segments but in Version 12 is max_size_size
> max_wal_size       = 32 (default 1GB)                 -  increase the
> value for heavy  load, but FYI it will increase the recovery if incase
> system crashed.
> checkpoint_completion_target = 0.9 (default: 0.5)      - the target of
> checkpoint completion time increase to 0.9
> default_statistics_target = 1000 (default: 100)       - fraction of total
> time between checkpoints.
> work_mem = 200MB (default: 1MB)
> maintainance_work_mem = 1GB (default: 16MB)           -  this is for
> vacuum, creating index. since your table old table with index then i would
> recomment this parameter to be higher.
>
> step 2:-
>
> select name, setting from pg_settings where name = 'autovacuum' ;
>
> if the output says "on" then no need to vacuum your table else do the
> below
>
> VACUUM FULL hk_card_master_test  ;
>
>
>
>
>
> Thanks & Best Wishes,
>
> Ashok
>
>
>
>
> ---------------------------------------------------------------------------------------------------------------------
>
> Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*
>
> *Dubai** , UAE* *| BLR , INDIA*
>
> M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975 99922*
>
> W: https://dbatocloudsolution.blogspot.in/
> <http://dbatocloudsolution.blogspot.in/; | E: dbatocloud17@gmail.com
>
>
> On Tue, Nov 24, 2020 at 4:08 PM Sachin Kumar <sachinkumaras@gmail.com>
> wrote:
>
>> Hi Ashok,
>>
>> it's an old table where an index is already created.
>>
>> postgresql database version 12 and 13 1 @ each server.
>>
>> all settings are on the default configuration.
>>
>> server configuration.
>>
>> Operating system :- Windows (Windows Server 2016 Datacenter)
>> Size (2 vcpus, 8 GiB memory)
>>
>> On Mon, Nov 23, 2020 at 8:30 PM dbatoCloud Solution <
>> dbatocloud17@gmail.com> wrote:
>>
>>> Hi Sachin,
>>> sorry for, delayed response,
>>>
>>> Why don't you run batch by batch?
>>>
>>> could you please confirm the below parameters values:- Since your doing
>>> bulk load I need the below details to recommend then I would suggest for a
>>> vacuum?
>>> hk_card_master_test              > has it created newly or old table
>>> with index was already existed?  please confirm?
>>> postgresql database version                      ?
>>> shared_buffers =                          ? (default: 32MB)
>>> effective_cache_size = ? (default: 128MB)
>>> checkpoint_segment = ? (default: 3)
>>> checkpoint_completion_target = ? (default: 0.5)
>>> default_statistics_target = ? (default: 100)
>>> work_mem = ? (default: 1MB)
>>> maintainance_work_mem = ? (default: 16MB)
>>>
>>>
>>>
>>>
>>> Thanks & Best Wishes,
>>>
>>> Ashok
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------------------------------------------------------
>>>
>>> Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*
>>>
>>> *Dubai** , UAE* *| BLR , INDIA*
>>>
>>> M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975 99922*
>>>
>>> W: https://dbatocloudsolution.blogspot.in/
>>> <http://dbatocloudsolution.blogspot.in/; | E: dbatocloud17@gmail.com
>>>
>>>
>>> On Mon, Nov 23, 2020 at 10:36 AM Sachin Kumar <sachinkumaras@gmail.com>
>>> wrote:
>>>
>>>> HI Ashok,
>>>>
>>>> Please find the command i am using to upload 10 million data into a
>>>> table.
>>>>
>>>> *copy command to update records*
>>>> copy hk_card_master_test from
>>>> 'C:/inetpub/wwwroot/cards/media/static/rawsheet_001-000.csv' with delimiter
>>>> E'\t' csv header encoding 'ISO_8859_5'
>>>>
>>>> I am not using the Vacuum command during the update? NO, I  am not
>>>> Vacuuming this large table.
>>>> I am using the analyze command for other queries.
>>>>
>>>> I am not aware of the Vacuum command functionality. Please if you can
>>>> help in understanding Vacuum query.
>>>>
>>>>
>>>> On Mon, Nov 23, 2020 at 10:23 AM dbatoCloud Solution <
>>>> dbatocloud17@gmail.com> wrote:
>>>>
>>>>> Hi Sachin,
>>>>>
>>>>> Let me know-how did you give a commit statement during update? Did you
>>>>> try use Vacuum and analyze command during update? are you
>>>>> frequently Vacuuming this table large table .
>>>>>
>>>>> if the postgresql is running on Linux then run it by batch with
>>>>> intermediate commit.
>>>>>
>>>>>
>>>>>
>>>>> Thanks & Best Wishes,
>>>>>
>>>>> Ashok
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Thanks & Best Wishes,
>>>>>
>>>>> Ashok
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------------------------------------------------------
>>>>>
>>>>> Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*
>>>>>
>>>>> *Dubai** , UAE* *| BLR , INDIA*
>>>>>
>>>>> M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975 99922*
>>>>>
>>>>> W: https://dbatocloudsolution.blogspot.in/
>>>>> <http://dbatocloudsolution.blogspot.in/; | E: dbatocloud17@gmail.com
>>>>>
>>>>>
>>>>> On Sun, Nov 22, 2020 at 10:25 PM David G. Johnston <
>>>>> david.g.johnston@gmail.com> wrote:
>>>>>
>>>>>>
>>>>>> On Sunday, November 22, 2020, Sachin Kumar <sachinkumaras@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Expert,
>>>>>>> I am updating 10 Million records using COPY command in a table, the
>>>>>>> table is updated in a minute, but when I am trying to view all row. PGadmin
>>>>>>> 4.28 which I am using in chrome is getting crashed. I tried it 4 times and
>>>>>>> it crashed 3 times. After viewing this 10M row the other queries are very
>>>>>>> running slow.
>>>>>>> is there any process to clear the buffer in PGAdmin or process
>>>>>>> through which the quey in PGAdmin runs at its normal speed?
>>>>>>> Please guide me on how to fix this issue.
>>>>>>>
>>>>>>>
>>>>>> Stop and restart the program?
>>>>>>
>>>>>> What do you hope to do with 10M full records displayed on screen
>>>>>> (even if pagination is involved...)?
>>>>>>
>>>>>> David J.
>>>>>>
>>>>>>
>>>>>
>>>>
>>>> --
>>>>
>>>> Best Regards,
>>>> Sachin Kumar
>>>>
>>>
>>
>> --
>>
>> Best Regards,
>> Sachin Kumar
>>
>

-- 

Best Regards,
Sachin Kumar

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: PG Admin 4.28 is crashing while viewing 10M row data
  2020-11-22 16:45 PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-22 16:55 ` Re: PG Admin 4.28 is crashing while viewing 10M row data David G. Johnston <david.g.johnston@gmail.com>
  2020-11-23 04:53   ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
  2020-11-23 05:06     ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-23 14:59       ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
  2020-11-24 10:37         ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-25 01:51           ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
  2020-11-26 05:30             ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
@ 2020-11-26 07:14               ` Holger Jakobs <holger@jakobs.com>
  2020-11-26 08:09                 ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  0 siblings, 1 reply; 12+ messages in thread

From: Holger Jakobs @ 2020-11-26 07:14 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org

Why not check why the server didn't start? For sure that isn't pgadmin related.

Have a look at your system log. It will show where your typo in the config file lies. File name and lime number can be found there.

Don't search in Postgresql's log, bout the system log!


Am 26. November 2020 06:30:57 MEZ schrieb Sachin Kumar <sachinkumaras@gmail.com>:
>Hi Team,
>
>After doing all these changes the DB services stopped and not started
>when
>I tried manually. I have to roll back all these changes and reinstall
>PGAdmin which wastes a lot of time for the team to fix these issues.
>
>error statement :- could not connect to server: Connection refused
>(0x0000274D/10061) Is the server running on host "localhost"
>(127.0.0.1)
>and accepting TCP/IP connections on port 5432?
>
>Kindly share tried and tested solution
>
>
>
>On Wed, Nov 25, 2020 at 7:22 AM dbatoCloud Solution
><dbatocloud17@gmail.com>
>wrote:
>
>> Hi Sachin - try the below steps and let me know
>>
>> Hi Sachin,
>> Step 1:-  Configure these below parameters before the bulk inserts
>then
>> restart the server.
>>
>> shared_buffers = 2048MB (default: 32MB)               -  25% of
>physical
>> memory is 2GB ( You system size 8GB physical memory)
>> effective_cache_size = 4096MB (default: 128MB)        -   I recommend
>to
>> go for higher value , so that index scan will be used instead of
>sequential
>> scan.
>> checkpoint_segment = 32 (default: 3)                  -     in 9.5
>> checkpoint_segments but in Version 12 is max_size_size
>> max_wal_size       = 32 (default 1GB)                 -  increase the
>> value for heavy  load, but FYI it will increase the recovery if
>incase
>> system crashed.
>> checkpoint_completion_target = 0.9 (default: 0.5)      - the target
>of
>> checkpoint completion time increase to 0.9
>> default_statistics_target = 1000 (default: 100)       - fraction of
>total
>> time between checkpoints.
>> work_mem = 200MB (default: 1MB)
>> maintainance_work_mem = 1GB (default: 16MB)           -  this is for
>> vacuum, creating index. since your table old table with index then i
>would
>> recomment this parameter to be higher.
>>
>> step 2:-
>>
>> select name, setting from pg_settings where name = 'autovacuum' ;
>>
>> if the output says "on" then no need to vacuum your table else do the
>> below
>>
>> VACUUM FULL hk_card_master_test  ;
>>
>>
>>
>>
>>
>> Thanks & Best Wishes,
>>
>> Ashok
>>
>>
>>
>>
>>
>---------------------------------------------------------------------------------------------------------------------
>>
>> Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*
>>
>> *Dubai** , UAE* *| BLR , INDIA*
>>
>> M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975 99922*
>>
>> W: https://dbatocloudsolution.blogspot.in/
>> <http://dbatocloudsolution.blogspot.in/; | E: dbatocloud17@gmail.com
>>
>>
>> On Tue, Nov 24, 2020 at 4:08 PM Sachin Kumar
><sachinkumaras@gmail.com>
>> wrote:
>>
>>> Hi Ashok,
>>>
>>> it's an old table where an index is already created.
>>>
>>> postgresql database version 12 and 13 1 @ each server.
>>>
>>> all settings are on the default configuration.
>>>
>>> server configuration.
>>>
>>> Operating system :- Windows (Windows Server 2016 Datacenter)
>>> Size (2 vcpus, 8 GiB memory)
>>>
>>> On Mon, Nov 23, 2020 at 8:30 PM dbatoCloud Solution <
>>> dbatocloud17@gmail.com> wrote:
>>>
>>>> Hi Sachin,
>>>> sorry for, delayed response,
>>>>
>>>> Why don't you run batch by batch?
>>>>
>>>> could you please confirm the below parameters values:- Since your
>doing
>>>> bulk load I need the below details to recommend then I would
>suggest for a
>>>> vacuum?
>>>> hk_card_master_test              > has it created newly or old
>table
>>>> with index was already existed?  please confirm?
>>>> postgresql database version                      ?
>>>> shared_buffers =                          ? (default: 32MB)
>>>> effective_cache_size = ? (default: 128MB)
>>>> checkpoint_segment = ? (default: 3)
>>>> checkpoint_completion_target = ? (default: 0.5)
>>>> default_statistics_target = ? (default: 100)
>>>> work_mem = ? (default: 1MB)
>>>> maintainance_work_mem = ? (default: 16MB)
>>>>
>>>>
>>>>
>>>>
>>>> Thanks & Best Wishes,
>>>>
>>>> Ashok
>>>>
>>>>
>>>>
>>>>
>>>>
>---------------------------------------------------------------------------------------------------------------------
>>>>
>>>> Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*
>>>>
>>>> *Dubai** , UAE* *| BLR , INDIA*
>>>>
>>>> M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975
>99922*
>>>>
>>>> W: https://dbatocloudsolution.blogspot.in/
>>>> <http://dbatocloudsolution.blogspot.in/; | E:
>dbatocloud17@gmail.com
>>>>
>>>>
>>>> On Mon, Nov 23, 2020 at 10:36 AM Sachin Kumar
><sachinkumaras@gmail.com>
>>>> wrote:
>>>>
>>>>> HI Ashok,
>>>>>
>>>>> Please find the command i am using to upload 10 million data into
>a
>>>>> table.
>>>>>
>>>>> *copy command to update records*
>>>>> copy hk_card_master_test from
>>>>> 'C:/inetpub/wwwroot/cards/media/static/rawsheet_001-000.csv' with
>delimiter
>>>>> E'\t' csv header encoding 'ISO_8859_5'
>>>>>
>>>>> I am not using the Vacuum command during the update? NO, I  am not
>>>>> Vacuuming this large table.
>>>>> I am using the analyze command for other queries.
>>>>>
>>>>> I am not aware of the Vacuum command functionality. Please if you
>can
>>>>> help in understanding Vacuum query.
>>>>>
>>>>>
>>>>> On Mon, Nov 23, 2020 at 10:23 AM dbatoCloud Solution <
>>>>> dbatocloud17@gmail.com> wrote:
>>>>>
>>>>>> Hi Sachin,
>>>>>>
>>>>>> Let me know-how did you give a commit statement during update?
>Did you
>>>>>> try use Vacuum and analyze command during update? are you
>>>>>> frequently Vacuuming this table large table .
>>>>>>
>>>>>> if the postgresql is running on Linux then run it by batch with
>>>>>> intermediate commit.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks & Best Wishes,
>>>>>>
>>>>>> Ashok
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks & Best Wishes,
>>>>>>
>>>>>> Ashok
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>---------------------------------------------------------------------------------------------------------------------
>>>>>>
>>>>>> Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*
>>>>>>
>>>>>> *Dubai** , UAE* *| BLR , INDIA*
>>>>>>
>>>>>> M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975
>99922*
>>>>>>
>>>>>> W: https://dbatocloudsolution.blogspot.in/
>>>>>> <http://dbatocloudsolution.blogspot.in/; | E:
>dbatocloud17@gmail.com
>>>>>>
>>>>>>
>>>>>> On Sun, Nov 22, 2020 at 10:25 PM David G. Johnston <
>>>>>> david.g.johnston@gmail.com> wrote:
>>>>>>
>>>>>>>
>>>>>>> On Sunday, November 22, 2020, Sachin Kumar
><sachinkumaras@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi Expert,
>>>>>>>> I am updating 10 Million records using COPY command in a table,
>the
>>>>>>>> table is updated in a minute, but when I am trying to view all
>row. PGadmin
>>>>>>>> 4.28 which I am using in chrome is getting crashed. I tried it
>4 times and
>>>>>>>> it crashed 3 times. After viewing this 10M row the other
>queries are very
>>>>>>>> running slow.
>>>>>>>> is there any process to clear the buffer in PGAdmin or process
>>>>>>>> through which the quey in PGAdmin runs at its normal speed?
>>>>>>>> Please guide me on how to fix this issue.
>>>>>>>>
>>>>>>>>
>>>>>>> Stop and restart the program?
>>>>>>>
>>>>>>> What do you hope to do with 10M full records displayed on screen
>>>>>>> (even if pagination is involved...)?
>>>>>>>
>>>>>>> David J.
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Best Regards,
>>>>> Sachin Kumar
>>>>>
>>>>
>>>
>>> --
>>>
>>> Best Regards,
>>> Sachin Kumar
>>>
>>
>
>-- 
>
>Best Regards,
>Sachin Kumar

-- 
Holger Jakobs, Bergisch Gladbach
+49 178 9759012
- sent from mobile, therefore short -

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: PG Admin 4.28 is crashing while viewing 10M row data
  2020-11-22 16:45 PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-22 16:55 ` Re: PG Admin 4.28 is crashing while viewing 10M row data David G. Johnston <david.g.johnston@gmail.com>
  2020-11-23 04:53   ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
  2020-11-23 05:06     ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-23 14:59       ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
  2020-11-24 10:37         ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-25 01:51           ` Re: PG Admin 4.28 is crashing while viewing 10M row data dbatoCloud Solution <dbatocloud17@gmail.com>
  2020-11-26 05:30             ` Re: PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
  2020-11-26 07:14               ` Re: PG Admin 4.28 is crashing while viewing 10M row data Holger Jakobs <holger@jakobs.com>
@ 2020-11-26 08:09                 ` Sachin Kumar <sachinkumaras@gmail.com>
  0 siblings, 0 replies; 12+ messages in thread

From: Sachin Kumar @ 2020-11-26 08:09 UTC (permalink / raw)
  To: Holger Jakobs <holger@jakobs.com>; +Cc: pgsql-admin@lists.postgresql.org

I rechecked everything and tries 2wice the same configuration, but both the
times when the server restarted I had faced the same issue.

On Thu, Nov 26, 2020 at 12:45 PM Holger Jakobs <holger@jakobs.com> wrote:

> Why not check why the server didn't start? For sure that isn't pgadmin
> related.
>
> Have a look at your system log. It will show where your typo in the config
> file lies. File name and lime number can be found there.
>
> Don't search in Postgresql's log, bout the system log!
>
>
> Am 26. November 2020 06:30:57 MEZ schrieb Sachin Kumar <
> sachinkumaras@gmail.com>:
>>
>> Hi Team,
>>
>> After doing all these changes the DB services stopped and not started
>> when I tried manually. I have to roll back all these changes and reinstall
>> PGAdmin which wastes a lot of time for the team to fix these issues.
>>
>> error statement :- could not connect to server: Connection refused
>> (0x0000274D/10061) Is the server running on host "localhost" (127.0.0.1)
>> and accepting TCP/IP connections on port 5432?
>>
>> Kindly share tried and tested solution
>>
>>
>>
>> On Wed, Nov 25, 2020 at 7:22 AM dbatoCloud Solution <
>> dbatocloud17@gmail.com> wrote:
>>
>>> Hi Sachin - try the below steps and let me know
>>>
>>> Hi Sachin,
>>> Step 1:-  Configure these below parameters before the bulk inserts then
>>> restart the server.
>>>
>>> shared_buffers = 2048MB (default: 32MB)               -  25% of physical
>>> memory is 2GB ( You system size 8GB physical memory)
>>> effective_cache_size = 4096MB (default: 128MB)        -   I recommend to
>>> go for higher value , so that index scan will be used instead of sequential
>>> scan.
>>> checkpoint_segment = 32 (default: 3)                  -     in 9.5
>>> checkpoint_segments but in Version 12 is max_size_size
>>> max_wal_size       = 32 (default 1GB)                 -  increase the
>>> value for heavy  load, but FYI it will increase the recovery if incase
>>> system crashed.
>>> checkpoint_completion_target = 0.9 (default: 0.5)      - the target of
>>> checkpoint completion time increase to 0.9
>>> default_statistics_target = 1000 (default: 100)       - fraction of
>>> total time between checkpoints.
>>> work_mem = 200MB (default: 1MB)
>>> maintainance_work_mem = 1GB (default: 16MB)           -  this is for
>>> vacuum, creating index. since your table old table with index then i would
>>> recomment this parameter to be higher.
>>>
>>> step 2:-
>>>
>>> select name, setting from pg_settings where name = 'autovacuum' ;
>>>
>>> if the output says "on" then no need to vacuum your table else do the
>>> below
>>>
>>> VACUUM FULL hk_card_master_test  ;
>>>
>>>
>>>
>>>
>>>
>>> Thanks & Best Wishes,
>>>
>>> Ashok
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------------------------------------------------------
>>>
>>> Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*
>>>
>>> *Dubai** , UAE* *| BLR , INDIA*
>>>
>>> M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975 99922*
>>>
>>> W: https://dbatocloudsolution.blogspot.in/
>>> <http://dbatocloudsolution.blogspot.in/; | E: dbatocloud17@gmail.com
>>>
>>>
>>> On Tue, Nov 24, 2020 at 4:08 PM Sachin Kumar <sachinkumaras@gmail.com>
>>> wrote:
>>>
>>>> Hi Ashok,
>>>>
>>>> it's an old table where an index is already created.
>>>>
>>>> postgresql database version 12 and 13 1 @ each server.
>>>>
>>>> all settings are on the default configuration.
>>>>
>>>> server configuration.
>>>>
>>>> Operating system :- Windows (Windows Server 2016 Datacenter)
>>>> Size (2 vcpus, 8 GiB memory)
>>>>
>>>> On Mon, Nov 23, 2020 at 8:30 PM dbatoCloud Solution <
>>>> dbatocloud17@gmail.com> wrote:
>>>>
>>>>> Hi Sachin,
>>>>> sorry for, delayed response,
>>>>>
>>>>> Why don't you run batch by batch?
>>>>>
>>>>> could you please confirm the below parameters values:- Since your
>>>>> doing bulk load I need the below details to recommend then I would suggest
>>>>> for a vacuum?
>>>>> hk_card_master_test              > has it created newly or old table
>>>>> with index was already existed?  please confirm?
>>>>> postgresql database version                      ?
>>>>> shared_buffers =                          ? (default: 32MB)
>>>>> effective_cache_size = ? (default: 128MB)
>>>>> checkpoint_segment = ? (default: 3)
>>>>> checkpoint_completion_target = ? (default: 0.5)
>>>>> default_statistics_target = ? (default: 100)
>>>>> work_mem = ? (default: 1MB)
>>>>> maintainance_work_mem = ? (default: 16MB)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Thanks & Best Wishes,
>>>>>
>>>>> Ashok
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------------------------------------------------------
>>>>>
>>>>> Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*
>>>>>
>>>>> *Dubai** , UAE* *| BLR , INDIA*
>>>>>
>>>>> M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975 99922*
>>>>>
>>>>> W: https://dbatocloudsolution.blogspot.in/
>>>>> <http://dbatocloudsolution.blogspot.in/; | E: dbatocloud17@gmail.com
>>>>>
>>>>>
>>>>> On Mon, Nov 23, 2020 at 10:36 AM Sachin Kumar <sachinkumaras@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> HI Ashok,
>>>>>>
>>>>>> Please find the command i am using to upload 10 million data into a
>>>>>> table.
>>>>>>
>>>>>> *copy command to update records*
>>>>>> copy hk_card_master_test from
>>>>>> 'C:/inetpub/wwwroot/cards/media/static/rawsheet_001-000.csv' with delimiter
>>>>>> E'\t' csv header encoding 'ISO_8859_5'
>>>>>>
>>>>>> I am not using the Vacuum command during the update? NO, I  am not
>>>>>> Vacuuming this large table.
>>>>>> I am using the analyze command for other queries.
>>>>>>
>>>>>> I am not aware of the Vacuum command functionality. Please if you can
>>>>>> help in understanding Vacuum query.
>>>>>>
>>>>>>
>>>>>> On Mon, Nov 23, 2020 at 10:23 AM dbatoCloud Solution <
>>>>>> dbatocloud17@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Sachin,
>>>>>>>
>>>>>>> Let me know-how did you give a commit statement during update? Did
>>>>>>> you try use Vacuum and analyze command during update? are you
>>>>>>> frequently Vacuuming this table large table .
>>>>>>>
>>>>>>> if the postgresql is running on Linux then run it by batch with
>>>>>>> intermediate commit.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Thanks & Best Wishes,
>>>>>>>
>>>>>>> Ashok
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Thanks & Best Wishes,
>>>>>>>
>>>>>>> Ashok
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------------------------------------------------------
>>>>>>>
>>>>>>> Ashokkumar Mani  *(OCP12c/11g/10g/9i, AWS SAA, M103)*
>>>>>>>
>>>>>>> *Dubai** , UAE* *| BLR , INDIA*
>>>>>>>
>>>>>>> M: *+971 54 723 0075 *| *+91 90086 70302 | *WApp :* +91 81975 99922*
>>>>>>>
>>>>>>> W: https://dbatocloudsolution.blogspot.in/
>>>>>>> <http://dbatocloudsolution.blogspot.in/; | E: dbatocloud17@gmail.com
>>>>>>>
>>>>>>>
>>>>>>> On Sun, Nov 22, 2020 at 10:25 PM David G. Johnston <
>>>>>>> david.g.johnston@gmail.com> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> On Sunday, November 22, 2020, Sachin Kumar <sachinkumaras@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi Expert,
>>>>>>>>> I am updating 10 Million records using COPY command in a table,
>>>>>>>>> the table is updated in a minute, but when I am trying to view all row.
>>>>>>>>> PGadmin 4.28 which I am using in chrome is getting crashed. I tried it 4
>>>>>>>>> times and it crashed 3 times. After viewing this 10M row the other queries
>>>>>>>>> are very running slow.
>>>>>>>>> is there any process to clear the buffer in PGAdmin or process
>>>>>>>>> through which the quey in PGAdmin runs at its normal speed?
>>>>>>>>> Please guide me on how to fix this issue.
>>>>>>>>>
>>>>>>>>>
>>>>>>>> Stop and restart the program?
>>>>>>>>
>>>>>>>> What do you hope to do with 10M full records displayed on screen
>>>>>>>> (even if pagination is involved...)?
>>>>>>>>
>>>>>>>> David J.
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> Best Regards,
>>>>>> Sachin Kumar
>>>>>>
>>>>>
>>>>
>>>> --
>>>>
>>>> Best Regards,
>>>> Sachin Kumar
>>>>
>>>
>>
>> --
>>
>> Best Regards,
>> Sachin Kumar
>>
>
> --
> Holger Jakobs, Bergisch Gladbach
> +49 178 9759012
> - sent from mobile, therefore short -
>


-- 

Best Regards,
Sachin Kumar

^ permalink  raw  reply  [nested|flat] 12+ messages in thread


end of thread, other threads:[~2020-11-26 08:09 UTC | newest]

Thread overview: 12+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-11-22 16:45 PG Admin 4.28 is crashing while viewing 10M row data Sachin Kumar <sachinkumaras@gmail.com>
2020-11-22 16:55 ` David G. Johnston <david.g.johnston@gmail.com>
2020-11-23 04:26   ` Sachin Kumar <sachinkumaras@gmail.com>
2020-11-23 04:44     ` David G. Johnston <david.g.johnston@gmail.com>
2020-11-23 04:53   ` dbatoCloud Solution <dbatocloud17@gmail.com>
2020-11-23 05:06     ` Sachin Kumar <sachinkumaras@gmail.com>
2020-11-23 14:59       ` dbatoCloud Solution <dbatocloud17@gmail.com>
2020-11-24 10:37         ` Sachin Kumar <sachinkumaras@gmail.com>
2020-11-25 01:51           ` dbatoCloud Solution <dbatocloud17@gmail.com>
2020-11-26 05:30             ` Sachin Kumar <sachinkumaras@gmail.com>
2020-11-26 07:14               ` Holger Jakobs <holger@jakobs.com>
2020-11-26 08:09                 ` Sachin Kumar <sachinkumaras@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox