Re: Regarding Postgres Dynamic Shared Memory (DSA)

From: Mahendranath Gurram <mahendranath(at)zohocorp(dot)com>
To: "Dilip Kumar" <dilipbalaut(at)gmail(dot)com>
Cc: "Mahi Gurram" <teckymahi(at)gmail(dot)com>, "Thomas Munro" <thomas(dot)munro(at)enterprisedb(dot)com>, "Pg Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Regarding Postgres Dynamic Shared Memory (DSA)
Date: 2017-06-20 13:18:50
Message-ID: 15cc5a7d6ac.12499fba61726.4983168038492706182@zohocorp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Dilip,

Thanks for your response.

The steps you followed are right. May i know in which OS you tried? Mac/Linux.

Because, In Mac, it is working fine. just as expected. But the problem(segmentation fault) i'm facing is with linux systems.

Thanks &amp; Best Regards,

-Mahi
Teamwork divides the task and multiplies the success.

---- On Tue, 20 Jun 2017 16:47:24 +0530 Dilip Kumar &lt;dilipbalaut(at)gmail(dot)com&gt; wrote ----

On Tue, Jun 20, 2017 at 3:16 PM, Mahendranath Gurram

&lt;mahendranath(at)zohocorp(dot)com&gt; wrote:

&gt; Hi Thomas,

&gt;

&gt; Any update on this?

&gt;

&gt; Please let me know how can i proceed further.

&gt;

&gt; Thanks &amp; Best Regards,

&gt; -Mahi

I did not see the code but just tested with your code.

1) Added test_dsa to shared preload library.

2) CREATE EXTENSION test_dsa;

3) executed test_dsa_data_access(1)

postgres=# select test_dsa_data_access(1);

2017-06-20 16:49:39.483 IST [9738] LOG: Data read is ==&gt; Hello world

2017-06-20 16:49:39.483 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.484 IST [9907] LOG: BackgroundWorker Shared

LinkedList Data read is ==&gt; Hello world0

2017-06-20 16:49:39.484 IST [9907] LOG: BackgroundWorker Shared

LinkedList Data read is ==&gt; Hello world1

2017-06-20 16:49:39.484 IST [9907] LOG: BackgroundWorker Shared

LinkedList Data read is ==&gt; Hello world2

2017-06-20 16:49:39.484 IST [9907] LOG: BackgroundWorker Shared

LinkedList Data read is ==&gt; Hello world3

2017-06-20 16:49:39.484 IST [9907] LOG: BackgroundWorker Shared

LinkedList Data read is ==&gt; Hello world4

2017-06-20 16:49:39.484 IST [9907] LOG: BackgroundWorker Shared

LinkedList Data read is ==&gt; Hello world5

2017-06-20 16:49:39.484 IST [9907] LOG: BackgroundWorker Shared

LinkedList Data read is ==&gt; Hello world6

2017-06-20 16:49:39.484 IST [9907] LOG: BackgroundWorker Shared

LinkedList Data read is ==&gt; Hello world7

2017-06-20 16:49:39.484 IST [9907] LOG: BackgroundWorker Shared

LinkedList Data read is ==&gt; Hello world8

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world0

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world1

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world2

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world3

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world4

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world5

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world6

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world7

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world8

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world9

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world10

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world11

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world12

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world13

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world14

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world15

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world16

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world17

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world18

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

2017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is

==&gt; Hello world19

2017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);

test_dsa_data_access

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

0

I don't see any segmentation fault. Is there some other step which I

have missed.

--

Regards,

Dilip Kumar

EnterpriseDB: http://www.enterprisedb.com

--

Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)

To make changes to your subscription:

http://www.postgresql.org/mailpref/pgsql-hackers

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2017-06-20 13:23:53 Re: Getting server crash on Windows when using ICU collation
Previous Message Heikki Linnakangas 2017-06-20 13:11:32 Re: Phantom segment upon promotion causing troubles.