Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csRQG-0006jJ-F4 for pgsql-sql@arkaria.postgresql.org; Mon, 27 Mar 2017 09:58:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1csRQF-0003FB-Tv for pgsql-sql@arkaria.postgresql.org; Mon, 27 Mar 2017 09:58:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1csRQE-0003En-V8 for pgsql-sql@postgresql.org; Mon, 27 Mar 2017 09:58:47 +0000 Received: from hub.ringways.co.uk ([88.211.105.30] helo=ringways.co.uk) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1csRQ7-0000DQ-6h for pgsql-sql@postgresql.org; Mon, 27 Mar 2017 09:58:45 +0000 Received: from eddie.ringways.co.uk ([10.1.1.115]) by ringways.co.uk with esmtp (Exim 4.84_2) (envelope-from ) id 1csRQ3-0005gN-9h for pgsql-sql@postgresql.org; Mon, 27 Mar 2017 10:58:36 +0100 From: Gary Stainburn Organization: Ringways Garages Ltd To: pgsql-sql@postgresql.org Subject: daisychain rows to detect value Date: Mon, 27 Mar 2017 10:58:35 +0100 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201703271058.35123.gary.stainburn@ringways.co.uk> X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 110959 [Mar 27 2017] X-KLMS-AntiSpam-Version: 5.7.0.14 X-KLMS-AntiSpam-Envelope-From: gary.stainburn@ringways.co.uk X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Info: LuaCore: 198 198 bd5755acbecd639081fbac51a2ae2ceafa71a1b1, {msgid_created_by_recepient}, ringways.co.uk:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;127.0.0.200:5.2.1;eddie.ringways.co.uk:7.1.1;127.0.0.199:5.2.1,7.1.2;fundraise.cancerresearchuk.org:7.1.1 X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiPhishing: Clean, 2017/03/23 13:59:16 X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.721, bases: 2017/03/27 03:16:00 #9355648 X-KLMS-AntiVirus-Status: Clean, skipped X-Spam-Score: -50.8 (--------------------------------------------------) X-Spam-Report: Spam detection software, running on the system "ollie2.ringways.co.uk", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see Gary Stainburn for details. Content preview: I have a table of network ports. These ports are part of something, be it a cabinet patch panel, or a network switch. np_connects_to references a hardware ID, which can be the cabinet, switch,router etc. containing the port. no_port is the name of the port. np_untagged_vlan is the VLAN ID for the port, with NULL being allowed. [...] Content analysis details: (-50.8 points, 15.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -50 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.1 SCORE_RCPTS Adding score for each recipient -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 1.0 RING_SAFE No description available. X-forward-disable: yes X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org I have a table of network ports. These ports are part of something, be it a cabinet patch panel, or a network switch. np_connects_to references a hardware ID, which can be the cabinet, switch,router etc. containing the port. no_port is the name of the port. np_untagged_vlan is the VLAN ID for the port, with NULL being allowed. Each port can then be patched to another port. For example: np_connects_to | np_port | np_patch_to | np_patch_port | np_untagged_vlan ---------------+---------+-------------+---------------+----------------- 1 | 01 | | | 1 2 | 23B | 1 | 01 | 3 | 23A | 2 | 23B | Row 1 shows a switch port set to VLAN 1. Row 2 shows a port in cabiner 'A' (Panel B port 23) which is patched to the switch port. Row 3 shows a port in cabinet 'B' (Panel A port 23) which is the other end cabinet A port 23B Is there a way to be able to propogate the untagged VLAN to any port patched to it? -- https://fundraise.cancerresearchuk.org/page/garys-march-march -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql