A temp table is created for both Live and Extract connection when a workbook is opened on Tableau Desktop or when a user signs into Tableau Server and accesses a view. These temp tables are stored in the temporary storage of the data source the view is connected to, and can be identified in the database by the #Tableau prefix. Temp tables can contain information about the connection or information necessary to prepare the view. For example:
A temp table is deleted when the corresponding database connection is closed, as long as the user who opened the workbook has Delete permissions for the database. The connection is closed when the workbook is closed on Tableau Desktop, or when the Tableau Server connection is inactive for a period of time. If Tableau Desktop or Server closes unexpectedly, the connection will be automatically closed and the corresponding temp tables will be deleted from the database.
If needed, the creation of temp tables can be managed by restricting permissions to the database. Also, you can stop the creation of temp tables by using a Tableau Data Customization (.tdc) file with the following flag: CAP_CREATE_TEMP_TABLES=NO.
For more information on .tdc files, see Tableau Capability Customizations Reference.
Note: Restricting the creation of temp tables may have an impact on the overall performance of your workbooks and views.
Important: Tableau does not test or support TDC files. These files should be used as a tool to explore or occasionally address issues with your data connection. Creating and maintaining TDC files requires careful manual editing, and there is no support for sharing these files.
The Tableau Server VizQL process creates temp tables because it establishes connections to the database to load and render views. Some user sessions will share the same VizQL process, and therefore the same temp table.
For example, a temp table created by the VizQL process will be shared among multiple user sessions if the connection is made to a database on the same server and is being accessed by the same database user. However, the temp table will not be shared if any of these properties are different.
pg_stat_activity in PostgreSQL, SQL Server Profiler, or MySQL General Query Log) while running Tableau queries.001458036

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.