KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ IPC Re: IPC

  • pmallon

    Member
    March 1, 2022 at 12:00 am

    Hi,

    I think you might want to use .z.ps/.z.pg for this, does the below do what you want?

    q)admin:([]query:();time:`timestamp$();user:`$();handle:`int$())
    
    q).z.ps:{`admin upsert enlist ( x 0;.z.p;.z.u;.z.w);value x;}
    
    q).z.pg:{`admin upsert enlist ( x 0;.z.p;.z.u;.z.w);value x}
    
    q)0 (+;1;2) / run on local p
    
    q)admin
    
    query time user handle
    
    --------------------------------------------------
    
    + 2022.03.01D13:14:16.858901000 pm 0