Skip to main content
added 229 characters in body
Source Link
Basil Bourque
  • 11k
  • 20
  • 61
  • 95

I understand that Temporary Tables in Postgres and MS SQL Server persist until the end of the session. When the user’s session ends, any temp tables created by that user are dropped automatically. The temp table is not visible between users.

I need both the visibility across user sessions and the temporary nature where the data disappears when the user session ends (either closes gracefully or breaks).

Is there any way to have a permanent table visible to all but temporary rows? Is there any automatic way to have a user’s inserted rows disappear at the end of their session, yet be visible to other users during that session?

I understand that Temporary Tables in Postgres and MS SQL Server persist until the end of the session. When the user’s session ends, any temp tables created by that user are dropped automatically.

Is there any way to have a permanent table but temporary rows? Is there any automatic way to have a user’s inserted rows disappear at the end of their session, yet be visible to other users during that session?

I understand that Temporary Tables in Postgres and MS SQL Server persist until the end of the session. When the user’s session ends, any temp tables created by that user are dropped automatically. The temp table is not visible between users.

I need both the visibility across user sessions and the temporary nature where the data disappears when the user session ends (either closes gracefully or breaks).

Is there any way to have a permanent table visible to all but temporary rows? Is there any automatic way to have a user’s inserted rows disappear at the end of their session, yet be visible to other users during that session?

fix question title and slight question grammar/formatting
Source Link

Can one have Temporary rowsRows?

I understand temporary tablesthat Temporary Tables in Postgres and MS SQL Server. Temp tables persist until the end of the session. When the user’s session ends, any temp tables created by that user are dropped automatically.

Is there any way to have a permanentpermanent table but temporarytemporary rows? Is there any automatic way to have a user’s inserted rows disappear at the end of their session, yet be visible to other users during that session?

Temporary rows?

I understand temporary tables in Postgres and MS SQL Server. Temp tables persist until the end of the session. When the user’s session ends, any temp tables created by that user are dropped automatically.

Is there any way to have a permanent table but temporary rows? Is there any automatic way to have a user’s inserted rows disappear at the end of their session, yet be visible to other users during that session?

Can one have Temporary Rows?

I understand that Temporary Tables in Postgres and MS SQL Server persist until the end of the session. When the user’s session ends, any temp tables created by that user are dropped automatically.

Is there any way to have a permanent table but temporary rows? Is there any automatic way to have a user’s inserted rows disappear at the end of their session, yet be visible to other users during that session?

Source Link
Basil Bourque
  • 11k
  • 20
  • 61
  • 95

Temporary rows?

I understand temporary tables in Postgres and MS SQL Server. Temp tables persist until the end of the session. When the user’s session ends, any temp tables created by that user are dropped automatically.

Is there any way to have a permanent table but temporary rows? Is there any automatic way to have a user’s inserted rows disappear at the end of their session, yet be visible to other users during that session?