Re: [HACKERS] Regarding Postgres Dynamic Shared Memory (DSA) - Mailing list pgsql-hackers
From | Mahendranath Gurram |
---|---|
Subject | Re: [HACKERS] Regarding Postgres Dynamic Shared Memory (DSA) |
Date | |
Msg-id | 15cc5a7d6ac.12499fba61726.4983168038492706182@zohocorp.com Whole thread Raw |
In response to | Re: [HACKERS] Regarding Postgres Dynamic Shared Memory (DSA) (Dilip Kumar <dilipbalaut@gmail.com>) |
Responses |
Re: [HACKERS] Regarding Postgres Dynamic Shared Memory (DSA)
|
List | 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 & Best Regards,
-Mahi
Teamwork divides the task and multiplies the success.
Teamwork divides the task and multiplies the success.
---- On Tue, 20 Jun 2017 16:47:24 +0530 Dilip Kumar <dilipbalaut@gmail.com> wrote ----
On Tue, Jun 20, 2017 at 3:16 PM, Mahendranath Gurram<mahendranath@zohocorp.com> wrote:> Hi Thomas,>> Any update on this?>> Please let me know how can i proceed further.>> Thanks & Best Regards,> -MahiI 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 ==> Hello world2017-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 SharedLinkedList Data read is ==> Hello world02017-06-20 16:49:39.484 IST [9907] LOG: BackgroundWorker SharedLinkedList Data read is ==> Hello world12017-06-20 16:49:39.484 IST [9907] LOG: BackgroundWorker SharedLinkedList Data read is ==> Hello world22017-06-20 16:49:39.484 IST [9907] LOG: BackgroundWorker SharedLinkedList Data read is ==> Hello world32017-06-20 16:49:39.484 IST [9907] LOG: BackgroundWorker SharedLinkedList Data read is ==> Hello world42017-06-20 16:49:39.484 IST [9907] LOG: BackgroundWorker SharedLinkedList Data read is ==> Hello world52017-06-20 16:49:39.484 IST [9907] LOG: BackgroundWorker SharedLinkedList Data read is ==> Hello world62017-06-20 16:49:39.484 IST [9907] LOG: BackgroundWorker SharedLinkedList Data read is ==> Hello world72017-06-20 16:49:39.484 IST [9907] LOG: BackgroundWorker SharedLinkedList Data read is ==> Hello world82017-06-20 16:49:39.485 IST [9738] LOG: LinkedList Node Data read is==> Hello world02017-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==> Hello world12017-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==> Hello world22017-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==> Hello world32017-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==> Hello world42017-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==> Hello world52017-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==> Hello world62017-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==> Hello world72017-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==> Hello world82017-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==> Hello world92017-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==> Hello world102017-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==> Hello world112017-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==> Hello world122017-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==> Hello world132017-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==> Hello world142017-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==> Hello world152017-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==> Hello world162017-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==> Hello world172017-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==> Hello world182017-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==> Hello world192017-06-20 16:49:39.485 IST [9738] STATEMENT: select test_dsa_data_access(1);test_dsa_data_access----------------------0I don't see any segmentation fault. Is there some other step which Ihave missed.--Regards,Dilip KumarEnterpriseDB: http://www.enterprisedb.com--Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)To make changes to your subscription:
pgsql-hackers by date: