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 1iChGo-0002dX-MN for pgsql-general@arkaria.postgresql.org; Tue, 24 Sep 2019 09:38:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iChGm-0007Uh-0k for pgsql-general@arkaria.postgresql.org; Tue, 24 Sep 2019 09:38:04 +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 1iChGl-0007Ua-LC for pgsql-general@lists.postgresql.org; Tue, 24 Sep 2019 09:38:03 +0000 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iChGj-000621-1S for pgsql-general@lists.postgresql.org; Tue, 24 Sep 2019 09:38:03 +0000 Received: by mail-pf1-x429.google.com with SMTP id q12so982171pff.9 for ; Tue, 24 Sep 2019 02:38:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Upjdxk6rzZITx9qI3zcyQAwGB7yVobGQmGoxyU/Js2g=; b=uQfDgviOj7Q8swEJOV4k7aT0gcFjXPLWaEn1bzuADLiMTOC2CVfE45DNtVHCtfz/76 zYxbVTW0hOx7YTE0GqPztydl1aN/H5HhMAv6S/EEC9nedj837kFHNFk/pplyhTyVId7v +OeYHzpqo+WylG+suxfdwYKg056mNFYkuj0qYc9/vzbvCDHE9extE671MvvFGzUmscep 4w8QUUUJdvZNT2mX9h8w9Pi5UG0naerNR/WYIYTIWBBwfVZtYvgAobCNwm1Lt6BGs/2i wVvwH8h81KD0U047z8WadB2Nq3K0T7b/t6K49txbZfH4Q5NB9VWo6iQsKI89r0dA7E1g 5YEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version; bh=Upjdxk6rzZITx9qI3zcyQAwGB7yVobGQmGoxyU/Js2g=; b=lUW/fqy+Ug8kxs0siruLkCCMz9kyQV76YLEed7BwVD96IXy7OGaghjDIOsdXySSe0v GMD4d6ghh4hBblkuSukW3xCRrwJXLcH2N6Mfr8vknSeJIwglvd1iUO1TSu53c60Bl4hu qvRlkkDV4PaKrpdoq++ueEyF2VIW27r9GiK8l7wqwqgJuJwXIBk59jG0iVhTdIPKigrm NQ0nDRumUyZFAfHeaJPjTYTZ2WP1xpC90Wobt7E5RxaiJPCr1wbIvjsucGjLYiBdPwK8 LL3Nn5ws9w7D55PpD1U3PQZxETeRjCevn82XJ7n/xbStj9Y5fMqtCiVaFGRE5sosKHDV I/aA== X-Gm-Message-State: APjAAAWsNI7cj5Xdpth6dDok42JADtaoubBzsGOnpTbDKFzpHpSef69D 2C7VtaT7uKKAly5Xhd1bqQ== X-Google-Smtp-Source: APXvYqwbXDsMplJZ/H3jXBae9sne32VwwxV9+ZIgEwtF5WmF/mwef1YxtPgn8VWNqgQATc2HPyxFzw== X-Received: by 2002:aa7:9a94:: with SMTP id w20mr2228357pfi.77.1569317878439; Tue, 24 Sep 2019 02:37:58 -0700 (PDT) Received: from Pankajs-MacBook-Pro.local ([125.99.219.187]) by smtp.gmail.com with ESMTPSA id 31sm1391266pgr.55.2019.09.24.02.37.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Sep 2019 02:37:57 -0700 (PDT) Received: by Pankajs-MacBook-Pro.local (Postfix, from userid 501) id 66BE920391E54C; Tue, 24 Sep 2019 15:07:53 +0530 (IST) From: Pankaj Jangid To: Francisco Olarte Cc: Pankaj Jangid , "pgsql-generallists.postgresql.org" Subject: Re: How to represent a bi-directional list in db? Organization: Code is Great! References: Date: Tue, 24 Sep 2019 15:07:53 +0530 In-Reply-To: (Francisco Olarte's message of "Tue, 24 Sep 2019 09:29:54 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Francisco Olarte writes: > That being said, linked lists are procedural data structures, SQL is > declarative, so they are not a great match, that's one of the reasons > why they are rarely seen. Things like master-detail have less > impedance mismatch. Thanks Francisco. Got the idea. -- Pankaj Jangid