You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/04/16 15:47:50 UTC

[GitHub] [trafficcontrol] rob05c commented on issue #3484: TO: "info" struct tag example for better generic endpoint handling

rob05c commented on issue #3484: TO: "info" struct tag example for better generic endpoint handling
URL: https://github.com/apache/trafficcontrol/pull/3484#issuecomment-483719191
 
 
   >I'm not sure we can utilize the RETURNING clause in all cases, since IIUC the expression can only contain columns from the table that was just inserted/updated/deleted
   
   We can, it's a little ugly, but it's doable with a CTE:
   
   ```
   WITH i as (
   INSERT INTO t (c) VALUES ('v') RETURNING id
   )
   SELECT c2 from t2 where t2.t_id = i.id FROM rows
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services